From 41c5d164cb36436ce949d51ffb8ca7b49b2addd9 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 18 Jun 2021 18:24:41 +0200 Subject: [PATCH] Add dummy `codeSubstitutes` to chain spec (#960) * Add dummy `codeSubstitutes` to chain spec * Typo --- src/chain_spec/structs.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chain_spec/structs.rs b/src/chain_spec/structs.rs index 7dd5b396a3..d162972e00 100644 --- a/src/chain_spec/structs.rs +++ b/src/chain_spec/structs.rs @@ -24,7 +24,7 @@ use super::light_sync_state::LightSyncState; use alloc::{boxed::Box, collections::BTreeMap, format, string::String, vec::Vec}; use fnv::FnvBuildHasher; -use hashbrown::HashSet; +use hashbrown::{HashMap, HashSet}; use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone, Debug)] @@ -35,6 +35,9 @@ pub(super) struct ClientSpec { pub(super) id: String, #[serde(default)] pub(super) chain_type: ChainType, + #[serde(default)] + // TODO: make use of this + pub(super) code_substitutes: HashMap, pub(super) boot_nodes: Vec, pub(super) telemetry_endpoints: Option>, pub(super) protocol_id: Option,