mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(deps): bump breaking deps (#14570)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -42,4 +42,4 @@ metrics.workspace = true
|
||||
[dev-dependencies]
|
||||
reth-tracing.workspace = true
|
||||
tokio = { workspace = true, features = ["rt-multi-thread"] }
|
||||
secp256k1 = { workspace = true, features = ["rand-std"] }
|
||||
secp256k1 = { workspace = true, features = ["std", "rand"] }
|
||||
|
||||
@ -655,8 +655,8 @@ pub async fn lookup(
|
||||
mod test {
|
||||
use super::*;
|
||||
use ::enr::{CombinedKey, EnrKey};
|
||||
use rand::thread_rng;
|
||||
use reth_chainspec::MAINNET;
|
||||
use secp256k1::rand::thread_rng;
|
||||
use tracing::trace;
|
||||
|
||||
fn discv5_noop() -> Discv5 {
|
||||
@ -729,16 +729,12 @@ mod test {
|
||||
node_1.with_discv5(|discv5| discv5.send_ping(node_2_enr.clone())).await.unwrap();
|
||||
|
||||
// verify node_1:discv5 is connected to node_2:discv5 and vv
|
||||
let event_2_v5 = stream_2.recv().await.unwrap();
|
||||
let event_1_v5 = stream_1.recv().await.unwrap();
|
||||
|
||||
assert!(matches!(
|
||||
event_1_v5,
|
||||
discv5::Event::SessionEstablished(node, socket) if node == node_2_enr && socket == node_2_enr.udp4_socket().unwrap().into()
|
||||
));
|
||||
assert!(matches!(
|
||||
event_2_v5,
|
||||
discv5::Event::SessionEstablished(node, socket) if node == node_1_enr && socket == node_1_enr.udp4_socket().unwrap().into()
|
||||
));
|
||||
|
||||
// verify node_1 is in KBuckets of node_2:discv5
|
||||
let event_2_v5 = stream_2.recv().await.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user