diff --git a/p2p/p2p-core/src/client.rs b/p2p/p2p-core/src/client.rs index 49d0ec87..256d39bc 100644 --- a/p2p/p2p-core/src/client.rs +++ b/p2p/p2p-core/src/client.rs @@ -15,7 +15,7 @@ use tracing::Instrument; use cuprate_helper::asynch::InfallibleOneshotReceiver; use cuprate_pruning::PruningSeed; -use cuprate_wire::CoreSyncData; +use cuprate_wire::{BasicNodeData, CoreSyncData}; use crate::{ handles::{ConnectionGuard, ConnectionHandle}, @@ -29,7 +29,6 @@ mod request_handler; mod timeout_monitor; pub use connector::{ConnectRequest, Connector}; -use cuprate_wire::common::PeerSupportFlags; pub use handshaker::{DoHandshakeRequest, HandshakeError, HandshakerBuilder}; /// An internal identifier for a given peer, will be their address if known @@ -63,8 +62,8 @@ pub struct PeerInformation { pub direction: ConnectionDirection, /// The peer's [`PruningSeed`]. pub pruning_seed: PruningSeed, - /// The peer's [`PeerSupportFlags`]. - pub support_flags: PeerSupportFlags, + /// The peer's [`BasicNodeData`]. + pub basic_node_data: BasicNodeData, /// The [`CoreSyncData`] of this peer. /// /// Data across fields are not necessarily related, so [`CoreSyncData::top_id`] is not always the diff --git a/p2p/p2p-core/src/client/handshaker.rs b/p2p/p2p-core/src/client/handshaker.rs index 4d5e8ee8..1dd9c164 100644 --- a/p2p/p2p-core/src/client/handshaker.rs +++ b/p2p/p2p-core/src/client/handshaker.rs @@ -455,7 +455,7 @@ where handle, direction, pruning_seed, - support_flags: peer_node_data.support_flags, + basic_node_data: peer_node_data, core_sync_data: Arc::new(Mutex::new(peer_core_sync)), };