mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
Migrate tx-graph, tx-pool and trie to the 2018 edition (#1611)
This commit is contained in:
committed by
Gav Wood
parent
e6839d2d41
commit
d796e09f02
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user