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

Commit 7fff6cb

Browse files
authored
Make these chainspecs fields private (#5031)
1 parent 48150f2 commit 7fff6cb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

client/chain-spec/src/chain_spec.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ struct ChildRawStorage {
117117
#[serde(deny_unknown_fields)]
118118
/// Storage content for genesis block.
119119
struct RawGenesis {
120-
pub top: GenesisStorage,
121-
pub children: HashMap<StorageKey, ChildRawStorage>,
120+
top: GenesisStorage,
121+
children: HashMap<StorageKey, ChildRawStorage>,
122122
}
123123

124124
#[derive(Serialize, Deserialize)]
@@ -134,14 +134,14 @@ enum Genesis<G> {
134134
#[serde(rename_all = "camelCase")]
135135
#[serde(deny_unknown_fields)]
136136
struct ClientSpec<E> {
137-
pub name: String,
138-
pub id: String,
139-
pub boot_nodes: Vec<String>,
140-
pub telemetry_endpoints: Option<TelemetryEndpoints>,
141-
pub protocol_id: Option<String>,
142-
pub properties: Option<Properties>,
137+
name: String,
138+
id: String,
139+
boot_nodes: Vec<String>,
140+
telemetry_endpoints: Option<TelemetryEndpoints>,
141+
protocol_id: Option<String>,
142+
properties: Option<Properties>,
143143
#[serde(flatten)]
144-
pub extensions: E,
144+
extensions: E,
145145
// Never used, left only for backward compatibility.
146146
consensus_engine: (),
147147
#[serde(skip_serializing)]

0 commit comments

Comments
 (0)