mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +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:
Generated
+139
-137
File diff suppressed because it is too large
Load Diff
@@ -172,10 +172,12 @@ macro_rules! new_full_start {
|
|||||||
builder.client().clone(),
|
builder.client().clone(),
|
||||||
builder.prometheus_registry(),
|
builder.prometheus_registry(),
|
||||||
);
|
);
|
||||||
let pool = sc_transaction_pool::BasicPool::new(
|
let pool = sc_transaction_pool::BasicPool::new_full(
|
||||||
builder.config().transaction_pool.clone(),
|
builder.config().transaction_pool.clone(),
|
||||||
std::sync::Arc::new(pool_api),
|
std::sync::Arc::new(pool_api),
|
||||||
builder.prometheus_registry(),
|
builder.prometheus_registry(),
|
||||||
|
builder.spawn_handle(),
|
||||||
|
builder.client().clone(),
|
||||||
);
|
);
|
||||||
Ok(pool)
|
Ok(pool)
|
||||||
})?
|
})?
|
||||||
@@ -509,12 +511,12 @@ macro_rules! new_light {
|
|||||||
builder.client().clone(),
|
builder.client().clone(),
|
||||||
fetcher,
|
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(),
|
builder.config().transaction_pool.clone(),
|
||||||
Arc::new(pool_api),
|
Arc::new(pool_api),
|
||||||
builder.prometheus_registry(),
|
builder.prometheus_registry(),
|
||||||
sc_transaction_pool::RevalidationType::Light,
|
builder.spawn_handle(),
|
||||||
);
|
));
|
||||||
Ok(pool)
|
Ok(pool)
|
||||||
})?
|
})?
|
||||||
.with_import_queue_and_fprb(|
|
.with_import_queue_and_fprb(|
|
||||||
|
|||||||
@@ -160,10 +160,12 @@ macro_rules! new_full_start {
|
|||||||
builder.client().clone(),
|
builder.client().clone(),
|
||||||
builder.prometheus_registry(),
|
builder.prometheus_registry(),
|
||||||
);
|
);
|
||||||
let pool = sc_transaction_pool::BasicPool::new(
|
let pool = sc_transaction_pool::BasicPool::new_full(
|
||||||
builder.config().transaction_pool.clone(),
|
builder.config().transaction_pool.clone(),
|
||||||
std::sync::Arc::new(pool_api),
|
std::sync::Arc::new(pool_api),
|
||||||
builder.prometheus_registry(),
|
builder.prometheus_registry(),
|
||||||
|
builder.spawn_handle(),
|
||||||
|
builder.client().clone(),
|
||||||
);
|
);
|
||||||
Ok(pool)
|
Ok(pool)
|
||||||
})?
|
})?
|
||||||
@@ -626,12 +628,12 @@ macro_rules! new_light {
|
|||||||
builder.client().clone(),
|
builder.client().clone(),
|
||||||
fetcher,
|
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(),
|
builder.config().transaction_pool.clone(),
|
||||||
Arc::new(pool_api),
|
Arc::new(pool_api),
|
||||||
builder.prometheus_registry(),
|
builder.prometheus_registry(),
|
||||||
sc_transaction_pool::RevalidationType::Light,
|
builder.spawn_handle(),
|
||||||
);
|
));
|
||||||
Ok(pool)
|
Ok(pool)
|
||||||
})?
|
})?
|
||||||
.with_import_queue_and_fprb(|
|
.with_import_queue_and_fprb(|
|
||||||
|
|||||||
Reference in New Issue
Block a user