Skip to content

Commit

Permalink
chain-spec: minor clarification on the genesis config patch (#5324)
Browse files Browse the repository at this point in the history
Added minor clarification on the genesis config patch
([link](https://substrate.stackexchange.com/questions/11813/in-the-genesis-config-what-does-the-patch-key-do/11825#11825))

---------

Co-authored-by: command-bot <>
  • Loading branch information
michalkucharczyk authored Aug 12, 2024
1 parent fc906d5 commit b52cfc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions substrate/client/chain-spec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@
//! </tbody>
//! </table>
//!
//! The main purpose of the `RuntimeGenesisConfig` patch is to:
//! - minimize the maintenance effort when RuntimeGenesisConfig is changed in the future (e.g. new
//! pallets added to the runtime or pallet's genesis config changed),
//! - increase the readability - it only contains the relevant fields,
//! - allow to apply numerous changes in distinct domains (e.g. for zombienet).
//!
//! For production or long-lasting blockchains, using the `raw` format in the chain specification is
//! recommended. Only the `raw` format guarantees that storage root hash will remain unchanged when
//! the `RuntimeGenesisConfig` format changes due to software upgrade.
Expand Down

0 comments on commit b52cfc2

Please sign in to comment.