Migrate tx-graph, tx-pool and trie to the 2018 edition (#1611)

This commit is contained in:
Stanislav Tkach
2019-01-29 17:25:03 +02:00
committed by Gav Wood
parent e6839d2d41
commit d796e09f02
18 changed files with 59 additions and 90 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ use sr_primitives::{
transaction_validity::TransactionValidity,
};
use error;
use crate::error;
/// The transaction pool logic
pub struct ChainApi<T, Block> {
@@ -18,6 +18,9 @@
use client;
use txpool;
use error_chain::{
error_chain, error_chain_processing, impl_error_chain_processed, impl_extract_backtrace, impl_error_chain_kind
};
error_chain! {
links {
+1 -15
View File
@@ -19,21 +19,6 @@
#![warn(missing_docs)]
#![warn(unused_extern_crates)]
extern crate parity_codec;
extern crate sr_primitives;
extern crate substrate_client as client;
extern crate substrate_primitives;
pub extern crate substrate_transaction_graph as txpool;
#[macro_use]
extern crate error_chain;
#[cfg(test)]
extern crate substrate_test_client as test_client;
#[cfg(test)]
extern crate substrate_keyring as keyring;
mod api;
#[cfg(test)]
mod tests;
@@ -41,3 +26,4 @@ mod tests;
pub mod error;
pub use api::ChainApi;
pub use txpool;