Skip to content

Commit

Permalink
Add attributes and documentation to fork_id (paritytech#10746)
Browse files Browse the repository at this point in the history
* Add attributes and documentation to fork_id

* Update client/chain-spec/src/chain_spec.rs

Co-authored-by: Sacha Lansky <sacha@parity.io>

Co-authored-by: Sacha Lansky <sacha@parity.io>
  • Loading branch information
2 people authored and Wizdave97 committed Feb 4, 2022
1 parent c5c8840 commit ebd94dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/chain-spec/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ struct ClientSpec<E> {
boot_nodes: Vec<MultiaddrWithPeerId>,
telemetry_endpoints: Option<TelemetryEndpoints>,
protocol_id: Option<String>,
/// Arbitrary string. Nodes will only synchronize with other nodes that have the same value
/// in their `fork_id`. This can be used in order to segregate nodes in cases when multiple
/// chains have the same genesis hash.
#[serde(default = "Default::default", skip_serializing_if = "Option::is_none")]
fork_id: Option<String>,
properties: Option<Properties>,
#[serde(flatten)]
Expand Down

0 comments on commit ebd94dc

Please sign in to comment.