Upgrade to discv5 0.7.0 (#6385)

* Upgrade to discv5 v0.7.0
This commit is contained in:
Age Manning
2024-09-12 10:26:20 +10:00
committed by GitHub
parent a94b12b4d5
commit e5a40fb73b
7 changed files with 84 additions and 235 deletions

View File

@@ -145,16 +145,13 @@ pub async fn run<E: EthSpec>(
Some(event) = event_stream.recv() => {
match event {
discv5::Event::Discovered(_enr) => {
// An ENR has bee obtained by the server
// An ENR has been obtained by the server
// Ignore these events here
}
discv5::Event::EnrAdded { .. } => {} // Ignore
discv5::Event::TalkRequest(_) => {} // Ignore
discv5::Event::NodeInserted { .. } => {} // Ignore
discv5::Event::SocketUpdated(socket_addr) => {
info!(log, "Advertised socket address updated"; "socket_addr" => %socket_addr);
}
discv5::Event::SessionEstablished{ .. } => {} // Ignore
_ => {} // Ignore
}
}
}