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 02d9eb0883
commit aaa7b59c6a
5 changed files with 13 additions and 5 deletions
+1 -2
View File
@@ -567,8 +567,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: crate::service::Block =
generate_genesis_block(&config.chain_spec, state_version)