2020-01-17 14:27:28 +01:00
|
|
|
// Copyright 2015-2020 Parity Technologies (UK) Ltd.
|
2019-01-07 11:33:07 +01:00
|
|
|
// This file is part of Parity Ethereum.
|
2016-02-05 13:40:41 +01:00
|
|
|
|
2019-01-07 11:33:07 +01:00
|
|
|
// Parity Ethereum is free software: you can redistribute it and/or modify
|
2016-02-05 13:40:41 +01:00
|
|
|
// 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.
|
|
|
|
|
2019-01-07 11:33:07 +01:00
|
|
|
// Parity Ethereum is distributed in the hope that it will be useful,
|
2016-02-05 13:40:41 +01:00
|
|
|
// 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
|
2019-01-07 11:33:07 +01:00
|
|
|
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
|
2016-02-05 13:40:41 +01:00
|
|
|
|
2019-09-16 21:56:53 +02:00
|
|
|
#![warn(missing_docs, unused_extern_crates)]
|
2016-02-15 00:51:50 +01:00
|
|
|
|
2016-01-29 15:56:06 +01:00
|
|
|
//! Blockchain sync module
|
|
|
|
//! Implements ethereum protocol version 63 as specified here:
|
|
|
|
//! https://github.com/ethereum/wiki/wiki/Ethereum-Wire-Protocol
|
|
|
|
//!
|
|
|
|
|
2019-09-19 13:12:07 +02:00
|
|
|
// needed to make the procedural macro `MallocSizeOf` to work
|
|
|
|
#[macro_use] extern crate parity_util_mem as malloc_size_of;
|
2015-12-22 22:19:50 +01:00
|
|
|
|
2019-09-19 13:12:07 +02:00
|
|
|
mod api;
|
2015-12-22 22:19:50 +01:00
|
|
|
mod chain;
|
2016-05-16 14:41:41 +02:00
|
|
|
mod blocks;
|
2016-10-18 18:16:00 +02:00
|
|
|
mod block_sync;
|
2016-08-05 10:32:04 +02:00
|
|
|
mod sync_io;
|
2018-04-09 16:14:33 +02:00
|
|
|
mod private_tx;
|
2019-09-03 11:29:25 +02:00
|
|
|
mod snapshot_sync;
|
2016-11-16 10:45:55 +01:00
|
|
|
mod transactions_stats;
|
2015-12-22 22:19:50 +01:00
|
|
|
|
2016-12-15 21:51:08 +01:00
|
|
|
pub mod light_sync;
|
|
|
|
|
2015-12-25 14:55:55 +01:00
|
|
|
#[cfg(test)]
|
|
|
|
mod tests;
|
2015-12-22 22:19:50 +01:00
|
|
|
|
2017-02-17 21:38:43 +01:00
|
|
|
pub use api::*;
|
2016-07-14 12:07:33 +02:00
|
|
|
pub use chain::{SyncStatus, SyncState};
|
2018-05-22 06:34:01 +02:00
|
|
|
pub use devp2p::validate_node_url;
|
2019-06-17 08:44:59 +02:00
|
|
|
pub use network::{NonReservedPeerMode, Error, ConnectionFilter, ConnectionDirection};
|
2018-04-09 16:14:33 +02:00
|
|
|
pub use private_tx::{PrivateTxHandler, NoopPrivateTxHandler, SimplePrivateTxHandler};
|