Companion for #6599 (#1371)

* Companion for #6599

https://github.com/paritytech/substrate/pull/6599

* Update Substrate ref
This commit is contained in:
Bastian Köcher
2020-07-08 18:15:59 +02:00
committed by GitHub
parent 51a698803c
commit 283ffd4ec4
3 changed files with 146 additions and 140 deletions
+138 -138
View File
File diff suppressed because it is too large Load Diff
+4 -1
View File
@@ -168,7 +168,10 @@ macro_rules! new_full_start {
Ok(sc_consensus::LongestChain::new(backend.clone()))
})?
.with_transaction_pool(|builder| {
let pool_api = sc_transaction_pool::FullChainApi::new(builder.client().clone());
let pool_api = sc_transaction_pool::FullChainApi::new(
builder.client().clone(),
builder.prometheus_registry(),
);
let pool = sc_transaction_pool::BasicPool::new(
builder.config().transaction_pool.clone(),
std::sync::Arc::new(pool_api),
+4 -1
View File
@@ -163,7 +163,10 @@ macro_rules! new_full_start {
Ok(sc_consensus::LongestChain::new(backend.clone()))
})?
.with_transaction_pool(|builder| {
let pool_api = sc_transaction_pool::FullChainApi::new(builder.client().clone());
let pool_api = sc_transaction_pool::FullChainApi::new(
builder.client().clone(),
builder.prometheus_registry(),
);
let pool = sc_transaction_pool::BasicPool::new(
builder.config().transaction_pool.clone(),
std::sync::Arc::new(pool_api),