Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit c21ca6b

Browse files
committed
fix new_light
1 parent 0bf74be commit c21ca6b

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

bin/node/cli/src/service.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ pub fn new_light<C: Send + Default + 'static>(config: NodeConfiguration<C>)
314314
let fetcher = fetcher
315315
.ok_or_else(|| "Trying to start light transaction pool without active fetcher")?;
316316
let pool_api = sc_transaction_pool::LightChainApi::new(client.clone(), fetcher.clone());
317-
let pool = sc_transaction_pool::BasicPool::new(config, pool_api);
317+
let pool = sc_transaction_pool::BasicPool::with_revalidation_type(
318+
config, pool_api, sc_transaction_pool::RevalidationType::Light,
319+
);
318320
Ok(pool)
319321
})?
320322
.with_import_queue_and_fprb(|_config, client, backend, fetcher, _select_chain, _tx_pool| {

client/service/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ where
214214
TExec: 'static + sc_client::CallExecutor<TBl> + Send + Sync + Clone,
215215
TRtApi: 'static + Send + Sync,
216216
TSc: sp_consensus::SelectChain<TBl> + 'static + Clone + Send + Unpin,
217-
TExPool: 'static + TransactionPool<Block = TBl>
218-
+ TransactionPoolMaintainer<Block = TBl>,
217+
TExPool: 'static + TransactionPool<Block = TBl>,
219218
TOc: 'static + Send + Sync,
220219
TNetSpec: NetworkSpecialization<TBl>,
221220
{

client/transaction-pool/graph/benches/basics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ fn benchmark_main(c: &mut Criterion) {
155155

156156
c.bench_function("sequential 50 tx", |b| {
157157
b.iter(|| {
158-
bench_configured(Pool::new(Default::default(), TestApi::new_dependant()), 50);
158+
bench_configured(Pool::new(Default::default(), TestApi::new_dependant().into()), 50);
159159
});
160160
});
161161

162162
c.bench_function("random 100 tx", |b| {
163163
b.iter(|| {
164-
bench_configured(Pool::new(Default::default(), TestApi::default()), 100);
164+
bench_configured(Pool::new(Default::default(), TestApi::default().into()), 100);
165165
});
166166
});
167167
}

0 commit comments

Comments
 (0)