mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 14:01:02 +00:00
Companion PR for ' Simplify a few chain components creation APIs related to the service' (#1384)
* Switch branch * Fix service creation * Revert "Switch branch" This reverts commit a706335821eb1553e48f86e0b0c5b3c11d589a1d. * Switch branch again * Revert "Switch branch again" This reverts commit 04afc5095e408ff9a116c526ef84f6b101482ee1. * Update substrate branch
This commit is contained in:
@@ -160,10 +160,12 @@ macro_rules! new_full_start {
|
||||
builder.client().clone(),
|
||||
builder.prometheus_registry(),
|
||||
);
|
||||
let pool = sc_transaction_pool::BasicPool::new(
|
||||
let pool = sc_transaction_pool::BasicPool::new_full(
|
||||
builder.config().transaction_pool.clone(),
|
||||
std::sync::Arc::new(pool_api),
|
||||
builder.prometheus_registry(),
|
||||
builder.spawn_handle(),
|
||||
builder.client().clone(),
|
||||
);
|
||||
Ok(pool)
|
||||
})?
|
||||
@@ -626,12 +628,12 @@ macro_rules! new_light {
|
||||
builder.client().clone(),
|
||||
fetcher,
|
||||
);
|
||||
let pool = sc_transaction_pool::BasicPool::with_revalidation_type(
|
||||
let pool = Arc::new(sc_transaction_pool::BasicPool::new_light(
|
||||
builder.config().transaction_pool.clone(),
|
||||
Arc::new(pool_api),
|
||||
builder.prometheus_registry(),
|
||||
sc_transaction_pool::RevalidationType::Light,
|
||||
);
|
||||
builder.spawn_handle(),
|
||||
));
|
||||
Ok(pool)
|
||||
})?
|
||||
.with_import_queue_and_fprb(|
|
||||
|
||||
Reference in New Issue
Block a user