2019-01-07 11:33:07 +01:00
|
|
|
// Copyright 2015-2019 Parity Technologies (UK) Ltd.
|
|
|
|
// 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
|
|
|
|
2016-01-29 15:56:06 +01:00
|
|
|
#![warn(missing_docs)]
|
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
|
|
|
|
//!
|
|
|
|
|
2018-08-13 17:53:19 +02:00
|
|
|
extern crate common_types as types;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate ethcore;
|
|
|
|
extern crate ethcore_io as io;
|
2016-08-05 10:32:04 +02:00
|
|
|
extern crate ethcore_network as network;
|
2018-03-05 11:56:35 +01:00
|
|
|
extern crate ethcore_network_devp2p as devp2p;
|
2018-01-10 13:35:18 +01:00
|
|
|
extern crate ethereum_types;
|
2019-02-07 14:34:24 +01:00
|
|
|
extern crate ethkey;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate ethstore;
|
2018-08-09 09:51:48 +02:00
|
|
|
extern crate fastmap;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate keccak_hash as hash;
|
|
|
|
extern crate parity_bytes as bytes;
|
2016-09-01 14:49:12 +02:00
|
|
|
extern crate parking_lot;
|
2019-01-04 14:05:46 +01:00
|
|
|
extern crate rand;
|
2016-09-01 14:49:12 +02:00
|
|
|
extern crate rlp;
|
Delete crates from parity-ethereum and fetch them from parity-common instead (#9083)
Use crates from parity-common: hashdb, keccak-hash, kvdb, kvdb-memorydb, kvdb-rocksdb, memorydb, parity-bytes, parity-crypto, path, patricia_trie, plain_hasher, rlp, target, test-support, trie-standardmap, triehash
2018-07-10 14:59:19 +02:00
|
|
|
extern crate triehash_ethereum;
|
2016-09-01 14:49:12 +02:00
|
|
|
|
2020-08-05 06:08:03 +02:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate env_logger;
|
|
|
|
#[cfg(test)]
|
|
|
|
extern crate kvdb_memorydb;
|
|
|
|
#[cfg(test)]
|
|
|
|
extern crate rustc_hex;
|
2016-12-06 19:23:15 +01:00
|
|
|
|
2019-02-13 09:20:33 +01:00
|
|
|
#[macro_use]
|
|
|
|
extern crate enum_primitive;
|
2016-09-01 14:49:12 +02:00
|
|
|
#[macro_use]
|
2017-10-10 20:01:27 +02:00
|
|
|
extern crate macros;
|
2016-09-01 14:49:12 +02:00
|
|
|
#[macro_use]
|
2017-10-10 20:01:27 +02:00
|
|
|
extern crate log;
|
2016-02-24 22:37:28 +01:00
|
|
|
#[macro_use]
|
|
|
|
extern crate heapsize;
|
2018-05-09 08:49:34 +02:00
|
|
|
#[macro_use]
|
|
|
|
extern crate trace_time;
|
2015-12-22 22:19:50 +01:00
|
|
|
|
2016-10-18 18:16:00 +02:00
|
|
|
mod block_sync;
|
2020-08-05 06:08:03 +02:00
|
|
|
mod blocks;
|
|
|
|
mod chain;
|
2016-09-06 15:31:13 +02:00
|
|
|
mod snapshot;
|
2020-08-05 06:08:03 +02:00
|
|
|
mod sync_io;
|
2016-11-16 10:45:55 +01:00
|
|
|
mod transactions_stats;
|
2015-12-22 22:19:50 +01:00
|
|
|
|
2015-12-25 14:55:55 +01:00
|
|
|
#[cfg(test)]
|
|
|
|
mod tests;
|
2015-12-22 22:19:50 +01:00
|
|
|
|
2016-12-08 19:52:48 +01:00
|
|
|
mod api;
|
|
|
|
|
2017-02-17 21:38:43 +01:00
|
|
|
pub use api::*;
|
2020-08-05 06:08:03 +02:00
|
|
|
pub use chain::{SyncState, SyncStatus};
|
2018-05-22 06:34:01 +02:00
|
|
|
pub use devp2p::validate_node_url;
|
2020-08-05 06:08:03 +02:00
|
|
|
pub use network::{ConnectionDirection, ConnectionFilter, Error, ErrorKind, NonReservedPeerMode};
|