This commit is contained in:
thiolliere
2019-10-03 12:52:41 +02:00
committed by Gavin Wood
parent 6a7956b45e
commit 9d3dd691b6
8 changed files with 232 additions and 175 deletions
+3 -3
View File
@@ -67,7 +67,7 @@ impl Default for CustomConfiguration {
}
/// Chain API type for the transaction pool.
pub type TxChainApi<Backend, Executor> = transaction_pool::ChainApi<
pub type TxChainApi<Backend, Executor> = transaction_pool::FullChainApi<
client::Client<Backend, Executor, Block, RuntimeApi>,
Block,
>;
@@ -87,7 +87,7 @@ macro_rules! new_full_start {
Ok(client::LongestChain::new(backend.clone()))
})?
.with_transaction_pool(|config, client|
Ok(transaction_pool::txpool::Pool::new(config, transaction_pool::ChainApi::new(client)))
Ok(transaction_pool::txpool::Pool::new(config, transaction_pool::FullChainApi::new(client)))
)?
.with_import_queue(|_config, client, mut select_chain, _| {
let select_chain = select_chain.take()
@@ -338,7 +338,7 @@ pub fn new_light(config: Configuration<CustomConfiguration, GenesisConfig>)
Ok(LongestChain::new(backend.clone()))
})?
.with_transaction_pool(|config, client|
Ok(TransactionPool::new(config, transaction_pool::ChainApi::new(client)))
Ok(TransactionPool::new(config, transaction_pool::FullChainApi::new(client)))
)?
.with_import_queue_and_fprb(|_config, client, backend, fetcher, _select_chain, _| {
let fetch_checker = fetcher