mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 15:57:55 +00:00
Remove NetworkSpecialization (#4665)
* remove networkspecialization * Fix most of the fallout * get all tests compiling Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e8000e7429
commit
0090fe979b
@@ -136,10 +136,6 @@
|
||||
//! - Light-client requests. When a light client requires information, a random node we have a
|
||||
//! substream open with is chosen, and the information is requested from it.
|
||||
//! - Gossiping. Used for example by grandpa.
|
||||
//! - Network specialization. The network protocol can be specialized through a template parameter
|
||||
//! of the network service. This specialization is free to send and receive messages with the
|
||||
//! remote. This is meant to be used by the chain that is being built on top of Substrate
|
||||
//! (eg. Polkadot).
|
||||
//!
|
||||
//! It is intended that in the future each of these components gets more isolated, so that they
|
||||
//! are free to open and close their own substreams, and so that syncing and light client requests
|
||||
@@ -180,7 +176,7 @@ pub mod error;
|
||||
pub mod network_state;
|
||||
|
||||
pub use service::{NetworkService, NetworkStateInfo, NetworkWorker, ExHashT, ReportHandle};
|
||||
pub use protocol::{PeerInfo, Context, specialization};
|
||||
pub use protocol::PeerInfo;
|
||||
pub use protocol::event::{Event, DhtEvent};
|
||||
pub use protocol::sync::SyncState;
|
||||
pub use libp2p::{Multiaddr, PeerId};
|
||||
@@ -196,10 +192,6 @@ pub use protocol::message::Status as StatusMessage;
|
||||
|
||||
pub use sc_peerset::ReputationChange;
|
||||
|
||||
// Used by the `construct_simple_protocol!` macro.
|
||||
#[doc(hidden)]
|
||||
pub use sp_runtime::traits::Block as BlockT;
|
||||
|
||||
/// Extension trait for `NetworkBehaviour` that also accepts discovering nodes.
|
||||
trait DiscoveryNetBehaviour {
|
||||
/// Notify the protocol that we have learned about the existence of nodes.
|
||||
|
||||
Reference in New Issue
Block a user