From 34bc24624a8639003c723398db8881e2bff99ebb Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 19 Nov 2021 10:37:37 +0100 Subject: [PATCH] Don't generate the consensusEngine field in chain specs (#10303) --- substrate/client/chain-spec/res/chain_spec.json | 1 - substrate/client/chain-spec/res/chain_spec2.json | 1 - substrate/client/chain-spec/src/chain_spec.rs | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/substrate/client/chain-spec/res/chain_spec.json b/substrate/client/chain-spec/res/chain_spec.json index 673f35d50791..c3365a9192f6 100644 --- a/substrate/client/chain-spec/res/chain_spec.json +++ b/substrate/client/chain-spec/res/chain_spec.json @@ -19,7 +19,6 @@ ["wss://telemetry.polkadot.io/submit/", 0] ], "protocolId": "fir", - "consensusEngine": null, "genesis": { "raw": [ { diff --git a/substrate/client/chain-spec/res/chain_spec2.json b/substrate/client/chain-spec/res/chain_spec2.json index 950a7fc82749..00b9d603ae29 100644 --- a/substrate/client/chain-spec/res/chain_spec2.json +++ b/substrate/client/chain-spec/res/chain_spec2.json @@ -19,7 +19,6 @@ ["wss://telemetry.polkadot.io/submit/", 0] ], "protocolId": "fir", - "consensusEngine": null, "myProperty": "Test Extension", "genesis": { "raw": [ diff --git a/substrate/client/chain-spec/src/chain_spec.rs b/substrate/client/chain-spec/src/chain_spec.rs index 4aa0aa74630e..8d8f62a5182c 100644 --- a/substrate/client/chain-spec/src/chain_spec.rs +++ b/substrate/client/chain-spec/src/chain_spec.rs @@ -168,6 +168,7 @@ struct ClientSpec { #[serde(flatten)] extensions: E, // Never used, left only for backward compatibility. + #[serde(default, skip_serializing)] consensus_engine: (), #[serde(skip_serializing)] #[allow(unused)]