Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions prdoc/pr_10106.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: Enforce single-state txpool for revive-dev-node
doc:
- audience: Runtime Dev
description: |-
Use single-state txpool for dev-node when instant-seal is selected

see https://github.com/paritytech/polkadot-sdk/issues/10104
crates: []
6 changes: 5 additions & 1 deletion substrate/frame/revive/dev-node/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub fn run() -> sc_cli::Result<()> {
}
}

let cli = Cli::from_iter(args);
let mut cli = Cli::from_iter(args);

match &cli.subcommand {
Some(Subcommand::Key(cmd)) => cmd.run(&cli),
Expand Down Expand Up @@ -121,6 +121,10 @@ pub fn run() -> sc_cli::Result<()> {
runner.sync_run(|config| cmd.run::<revive_dev_runtime::OpaqueBlock>(&config))
},
None => {
// Enforce single-state pool-type if instant-seal is selected
if matches!(cli.consensus, crate::cli::Consensus::InstantSeal) {
cli.run.pool_config.pool_type = sc_cli::TransactionPoolType::SingleState
}
let runner = cli.create_runner(&cli.run)?;
runner.run_node_until_exit(|config| async move {
match config.network.network_backend {
Expand Down
Loading