Skip to content

Commit

Permalink
?Sized saga: wrapper removed (again) + fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkucharczyk committed Sep 19, 2024
1 parent 3382208 commit 6f39223
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 32 deletions.
2 changes: 0 additions & 2 deletions substrate/client/transaction-pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ mod common;
mod fork_aware_txpool;
mod graph;
mod single_state_txpool;
mod transaction_pool_wrapper;

use common::{api, enactment_state};
use std::{future::Future, pin::Pin, sync::Arc};
Expand All @@ -39,7 +38,6 @@ pub use fork_aware_txpool::{ForkAwareTxPool, ForkAwareTxPoolTask};
pub use graph::{base_pool::Limit as PoolLimit, ChainApi, Options, Pool};
use single_state_txpool::prune_known_txs_for_block;
pub use single_state_txpool::{BasicPool, RevalidationType};
pub use transaction_pool_wrapper::TransactionPoolWrapper;

type BoxedReadyIterator<Hash, Data> = Box<
dyn sc_transaction_pool_api::ReadyTransactions<
Expand Down
18 changes: 8 additions & 10 deletions templates/minimal/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,14 @@ pub fn new_partial(config: &Configuration) -> Result<Service, ServiceError> {

let select_chain = sc_consensus::LongestChain::new(backend.clone());

let transaction_pool = Arc::from(
sc_transaction_pool::Builder::new(
task_manager.spawn_essential_handle(),
client.clone(),
config.role.is_authority().into(),
)
.with_options(config.transaction_pool.clone())
.with_prometheus(config.prometheus_registry())
.build(),
);
let transaction_pool = sc_transaction_pool::Builder::new(
task_manager.spawn_essential_handle(),
client.clone(),
config.role.is_authority().into(),
)
.with_options(config.transaction_pool.clone())
.with_prometheus(config.prometheus_registry())
.build();

let import_queue = sc_consensus_manual_seal::import_queue(
Box::new(client.clone()),
Expand Down
18 changes: 8 additions & 10 deletions templates/parachain/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,14 @@ pub fn new_partial(config: &Configuration) -> Result<Service, sc_service::Error>
telemetry
});

let transaction_pool = Arc::from(
sc_transaction_pool::Builder::new(
task_manager.spawn_essential_handle(),
client.clone(),
config.role.is_authority().into(),
)
.with_options(config.transaction_pool.clone())
.with_prometheus(config.prometheus_registry())
.build(),
);
let transaction_pool = sc_transaction_pool::Builder::new(
task_manager.spawn_essential_handle(),
client.clone(),
config.role.is_authority().into(),
)
.with_options(config.transaction_pool.clone())
.with_prometheus(config.prometheus_registry())
.build();

let block_import = ParachainBlockImport::new(client.clone(), backend.clone());

Expand Down
18 changes: 8 additions & 10 deletions templates/solochain/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,14 @@ pub fn new_partial(config: &Configuration) -> Result<Service, ServiceError> {

let select_chain = sc_consensus::LongestChain::new(backend.clone());

let transaction_pool = Arc::from(
sc_transaction_pool::Builder::new(
task_manager.spawn_essential_handle(),
client.clone(),
config.role.is_authority().into(),
)
.with_options(config.transaction_pool.clone())
.with_prometheus(config.prometheus_registry())
.build(),
);
let transaction_pool = sc_transaction_pool::Builder::new(
task_manager.spawn_essential_handle(),
client.clone(),
config.role.is_authority().into(),
)
.with_options(config.transaction_pool.clone())
.with_prometheus(config.prometheus_registry())
.build();

let (grandpa_block_import, grandpa_link) = sc_consensus_grandpa::block_import(
client.clone(),
Expand Down

0 comments on commit 6f39223

Please sign in to comment.