Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make these chainspecs fields private
  • Loading branch information
tomaka committed Feb 24, 2020
commit b1e42717b6d780cee2c516267d3b9d1db0450863
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