Ensure we send the correct polkadot node version to telemetry (#1307)

This is basically a hack, but with the current way we initialize the node this is the easiest
solution to ensure we send the correct version etc.
This commit is contained in:
Bastian Köcher
2022-05-30 19:50:00 +02:00
committed by GitHub
parent 154ea86efb
commit 6f416eece2
5 changed files with 13 additions and 5 deletions
+1 -2
View File
@@ -310,8 +310,7 @@ pub fn run() -> Result<()> {
let parachain_account =
AccountIdConversion::<polkadot_primitives::v2::AccountId>::into_account_truncating(&id);
let state_version =
RelayChainCli::native_runtime_version(&config.chain_spec).state_version();
let state_version = Cli::native_runtime_version(&config.chain_spec).state_version();
let block: Block = generate_genesis_block(&config.chain_spec, state_version)
.map_err(|e| format!("{:?}", e))?;
let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode()));