Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Make these chainspecs fields private (#5031)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka authored Feb 26, 2020
1 parent 48150f2 commit 7fff6cb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions client/chain-spec/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ struct ChildRawStorage {
#[serde(deny_unknown_fields)]
/// Storage content for genesis block.
struct RawGenesis {
pub top: GenesisStorage,
pub children: HashMap<StorageKey, ChildRawStorage>,
top: GenesisStorage,
children: HashMap<StorageKey, ChildRawStorage>,
}

#[derive(Serialize, Deserialize)]
Expand All @@ -134,14 +134,14 @@ enum Genesis<G> {
#[serde(rename_all = "camelCase")]
#[serde(deny_unknown_fields)]
struct ClientSpec<E> {
pub name: String,
pub id: String,
pub boot_nodes: Vec<String>,
pub telemetry_endpoints: Option<TelemetryEndpoints>,
pub protocol_id: Option<String>,
pub properties: Option<Properties>,
name: String,
id: String,
boot_nodes: Vec<String>,
telemetry_endpoints: Option<TelemetryEndpoints>,
protocol_id: Option<String>,
properties: Option<Properties>,
#[serde(flatten)]
pub extensions: E,
extensions: E,
// Never used, left only for backward compatibility.
consensus_engine: (),
#[serde(skip_serializing)]
Expand Down

0 comments on commit 7fff6cb

Please sign in to comment.