Skip to content

Commit

Permalink
Add dummy codeSubstitutes to chain spec (#960)
Browse files Browse the repository at this point in the history
* Add dummy `codeSubstitutes` to chain spec

* Typo
  • Loading branch information
tomaka authored Jun 18, 2021
1 parent 716bdd8 commit 41c5d16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/chain_spec/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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<String, HexString, fnv::FnvBuildHasher>,
pub(super) boot_nodes: Vec<String>,
pub(super) telemetry_endpoints: Option<Vec<(String, u8)>>,
pub(super) protocol_id: Option<String>,
Expand Down

0 comments on commit 41c5d16

Please sign in to comment.