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:
Aaro Altonen
2022-10-10 10:10:53 +03:00
committed by GitHub
parent 0b77060986
commit ce9ce49bc6
23 changed files with 439 additions and 263 deletions
+2 -1
View File
@@ -260,7 +260,8 @@ pub use libp2p::{multiaddr, Multiaddr, PeerId};
pub use protocol::PeerInfo;
pub use sc_network_common::{
protocol::{
event::{DhtEvent, Event, ObservedRole},
event::{DhtEvent, Event},
role::ObservedRole,
ProtocolName,
},
request_responses::{IfDisconnected, RequestFailure},