Skip to content
Snippets Groups Projects
Commit 85959819 authored by Pierre Krieger's avatar Pierre Krieger Committed by GitHub
Browse files

Make these chainspecs fields private (#5031)

parent 492a820c
No related merge requests found
......@@ -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)]
......@@ -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)]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment