mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 12:37:57 +00:00
89b312fe9c
* Revert #2745 * Fix error in merge resolve * Fix compilation
64 lines
2.1 KiB
Rust
64 lines
2.1 KiB
Rust
// Copyright 2017-2019 Parity Technologies (UK) Ltd.
|
|
// This file is part of Substrate.
|
|
|
|
// Substrate is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Substrate is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#![warn(unused_extern_crates)]
|
|
#![warn(missing_docs)]
|
|
|
|
//! Substrate-specific P2P networking: synchronizing blocks, propagating BFT messages.
|
|
//! Allows attachment of an optional subprotocol for chain-specific requests.
|
|
//!
|
|
//! **Important**: This crate is unstable and the API and usage may change.
|
|
//!
|
|
|
|
mod service;
|
|
mod sync;
|
|
#[macro_use]
|
|
mod protocol;
|
|
mod chain;
|
|
mod blocks;
|
|
mod on_demand;
|
|
mod on_demand_layer;
|
|
mod util;
|
|
pub mod config;
|
|
pub mod consensus_gossip;
|
|
pub mod error;
|
|
pub mod message;
|
|
pub mod specialization;
|
|
|
|
#[cfg(any(test, feature = "test-helpers"))]
|
|
pub mod test;
|
|
|
|
pub use chain::{Client as ClientHandle, FinalityProofProvider};
|
|
pub use service::{
|
|
NetworkService, NetworkWorker, FetchFuture, TransactionPool, ManageNetwork,
|
|
NetworkMsg, SyncProvider, ExHashT, ReportHandle,
|
|
};
|
|
pub use protocol::{ProtocolStatus, PeerInfo, Context};
|
|
pub use sync::{Status as SyncStatus, SyncState};
|
|
pub use network_libp2p::{
|
|
identity, multiaddr,
|
|
ProtocolId, Multiaddr,
|
|
NetworkState, NetworkStatePeer, NetworkStateNotConnectedPeer, NetworkStatePeerEndpoint,
|
|
NodeKeyConfig, Secret, Secp256k1Secret, Ed25519Secret,
|
|
build_multiaddr, PeerId, PublicKey
|
|
};
|
|
pub use message::{generic as generic_message, RequestId, Status as StatusMessage};
|
|
pub use error::Error;
|
|
pub use on_demand::AlwaysBadChecker;
|
|
pub use on_demand_layer::{OnDemand, RemoteResponse};
|
|
#[doc(hidden)]
|
|
pub use runtime_primitives::traits::Block as BlockT;
|