mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 07:37:57 +00:00
Move block announcement protocol config out of Protocol (#12441)
* Move Role(s) to `sc-network-common` * Introduce `NotificationHandshake` type * Move block announce protocol config creation to `ChainSync` * Include block announcement into `notification_protocols` * Apply review comments * Remove unneeded include * Add missing include * Apply review comments
This commit is contained in:
@@ -35,10 +35,7 @@ use prometheus_endpoint::{register, Counter, PrometheusError, Registry, U64};
|
||||
use sc_network_common::{
|
||||
config::{NonDefaultSetConfig, NonReservedPeerMode, ProtocolId, SetConfig},
|
||||
error,
|
||||
protocol::{
|
||||
event::{Event, ObservedRole},
|
||||
ProtocolName,
|
||||
},
|
||||
protocol::{event::Event, role::ObservedRole, ProtocolName},
|
||||
service::{NetworkEventStream, NetworkNotification, NetworkPeers},
|
||||
utils::{interval, LruHashSet},
|
||||
ExHashT,
|
||||
@@ -145,6 +142,7 @@ impl TransactionsHandlerPrototype {
|
||||
notifications_protocol: self.protocol_name.clone(),
|
||||
fallback_names: self.fallback_protocol_names.clone(),
|
||||
max_notification_size: MAX_TRANSACTIONS_SIZE,
|
||||
handshake: None,
|
||||
set_config: SetConfig {
|
||||
in_peers: 0,
|
||||
out_peers: 0,
|
||||
|
||||
Reference in New Issue
Block a user