Exercise 11
Objectives: genesis config, node command arguments
Needs: Exercise 03
Content: Here, we will add the possibility of banishing some accounts from the very beginning of the chain.
Add a new option to the node which specifies which accounts should be banished from the genesis block. This would require two steps:
Modifying
banishmentpallet (genesis config-related stuff).Modifying CLI (
bootstrap-chaincommand) and chainspec creation.
After implementing these changes, verify them by running a new local chain with some banished accounts.
References:
pallets/electionsbin/node/src/chain_spec.rs
Last updated
Was this helpful?