Skip to content

Commit 1033457

Browse files
author
Aleksandar Brayanov
committed
fix: updated tanssi-node and simple container chain template node configs to work with next txpool
1 parent 4ce3058 commit 1033457

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

client/service-container-chain/src/rpc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub mod generate_rpc_builder {
134134

135135
pub type SyncingService = sc_network_sync::SyncingService<Block>;
136136
pub type TransactionPool<RuntimeApi> =
137-
sc_transaction_pool::FullPool<Block, ContainerChainClient<RuntimeApi>>;
137+
sc_transaction_pool::TransactionPoolHandle<Block, ContainerChainClient<RuntimeApi>>;
138138
pub type CommandSink =
139139
futures::channel::mpsc::Sender<sc_consensus_manual_seal::EngineCommand<Hash>>;
140140
pub type XcmSenders = (flume::Sender<Vec<u8>>, flume::Sender<(ParaId, Vec<u8>)>);

client/service-container-chain/src/service.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use {
4545
},
4646
sc_telemetry::TelemetryHandle,
4747
sc_tracing::tracing::Instrument,
48-
sc_transaction_pool::FullPool,
48+
sc_transaction_pool::TransactionPoolHandle,
4949
sp_api::ProvideRuntimeApi,
5050
sp_consensus::EnableProofRecording,
5151
sp_consensus_aura::SlotDuration,
@@ -147,8 +147,11 @@ pub type ParachainBackend = TFullBackend<Block>;
147147
pub type DevParachainBlockImport = OrchestratorParachainBlockImport<Arc<ParachainClient>>;
148148
pub type ParachainBlockImport =
149149
TParachainBlockImport<Block, Arc<ParachainClient>, ParachainBackend>;
150-
pub type ParachainProposerFactory =
151-
ProposerFactory<FullPool<Block, ParachainClient>, ParachainClient, EnableProofRecording>;
150+
pub type ParachainProposerFactory = ProposerFactory<
151+
TransactionPoolHandle<Block, ParachainClient>,
152+
ParachainClient,
153+
EnableProofRecording,
154+
>;
152155

153156
// Container chains types
154157
type ContainerChainExecutor = WasmExecutor<ParachainHostFunctions>;
@@ -334,7 +337,9 @@ fn start_consensus_container<RuntimeApi: MinimalContainerRuntimeApi>(
334337
spawner: SpawnTaskHandle,
335338
relay_chain_interface: Arc<dyn RelayChainInterface>,
336339
orchestrator_chain_interface: Arc<dyn OrchestratorChainInterface>,
337-
transaction_pool: Arc<sc_transaction_pool::FullPool<Block, ContainerChainClient<RuntimeApi>>>,
340+
transaction_pool: Arc<
341+
sc_transaction_pool::TransactionPoolHandle<Block, ContainerChainClient<RuntimeApi>>,
342+
>,
338343
sync_oracle: Arc<SyncingService<Block>>,
339344
keystore: KeystorePtr,
340345
force_authoring: bool,

client/service-container-chain/src/spawner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ use {
4444
sc_cli::{Database, SyncMode},
4545
sc_network::config::MultiaddrWithPeerId,
4646
sc_service::SpawnTaskHandle,
47-
sc_transaction_pool::FullPool,
47+
sc_transaction_pool::TransactionPoolHandle,
4848
sp_api::ProvideRuntimeApi,
4949
sp_core::H256,
5050
sp_keystore::KeystorePtr,
@@ -135,7 +135,7 @@ pub struct ContainerChainSpawnParams<
135135
#[derive(Clone)]
136136
pub struct CollationParams {
137137
pub collator_key: CollatorPair,
138-
pub orchestrator_tx_pool: Option<Arc<FullPool<OpaqueBlock, ParachainClient>>>,
138+
pub orchestrator_tx_pool: Option<Arc<TransactionPoolHandle<OpaqueBlock, ParachainClient>>>,
139139
pub orchestrator_client: Option<Arc<ParachainClient>>,
140140
pub orchestrator_para_id: ParaId,
141141
/// If this is `false`, then `orchestrator_tx_pool` and `orchestrator_client` must be `Some`.

node/src/service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ use {
6565
sc_network_sync::SyncingService,
6666
sc_service::{Configuration, KeystoreContainer, SpawnTaskHandle, TFullBackend, TaskManager},
6767
sc_telemetry::TelemetryHandle,
68-
sc_transaction_pool::FullPool,
68+
sc_transaction_pool::TransactionPoolHandle,
6969
sp_api::StorageProof,
7070
sp_consensus::SyncOracle,
7171
sp_consensus_slots::Slot,
@@ -516,7 +516,7 @@ fn start_consensus_orchestrator(
516516
overseer_handle: OverseerHandle,
517517
announce_block: Arc<dyn Fn(Hash, Option<Vec<u8>>) + Send + Sync>,
518518
proposer_factory: ParachainProposerFactory,
519-
orchestrator_tx_pool: Arc<FullPool<Block, ParachainClient>>,
519+
orchestrator_tx_pool: Arc<TransactionPoolHandle<Block, ParachainClient>>,
520520
) -> (CancellationToken, futures::channel::oneshot::Receiver<()>) {
521521
let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)
522522
.expect("start_consensus_orchestrator: slot duration should exist");

0 commit comments

Comments
 (0)