-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix try-runtime fast-forward
when run from the substrate cli and add test
#13888
Conversation
try-runtime fast-forward
when run from the substrate clitry-runtime fast-forward
when run from the substrate cli and add test
Command::new(cargo_bin("substrate")) | ||
Command::new(cargo_bin("node-template")) | ||
.stdout(process::Stdio::piped()) | ||
.stderr(process::Stdio::piped()) | ||
.args(&["--dev", "--tmp", "--ws-port=45789", "--no-hardware-benchmarks"]) | ||
.args(&["--dev", "--ws-port=45789"]) | ||
.spawn() | ||
.unwrap() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make things simpler.
--dev
makes --tmp
redundant, and node-template
doesn't run any hardware benchmarks by default.
Let me know if I'm missing something though.
Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Bastian Köcher <git@kchr.de>
I'm converting this PR back to a draft with the intention of getting |
@@ -32,6 +32,9 @@ use sp_keyring::Sr25519Keyring; | |||
|
|||
use std::sync::Arc; | |||
|
|||
#[cfg(feature = "try-runtime")] | |||
use try_runtime_cli::block_building_info::timestamp_with_aura_info; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally always prefer using the full path where needed, or doing the import more locally, rather than feature gated imports, but up to you.
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing this for now, need to solve issue with per-chain inherents first. |
Closes: #13831
Description
fast-forward
requires a customBlockBuildingInfoProvider
with the blocktime set (see discussion here #12896).The custom provider had been set for the
node-template
cli, but not thesubstrate
cli.BlockBuildingInfoProvider
with thesubstrate
clinode-template
,substrate
,polkadot
,kusama
follow-chain
exits with a success status code, and perform a basic check on the output