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:

  1. Modifying banishment pallet (genesis config-related stuff).

  2. Modifying CLI (bootstrap-chain command) and chainspec creation.

After implementing these changes, verify them by running a new local chain with some banished accounts.

References:

  • pallets/elections

  • bin/node/src/chain_spec.rs

Last updated

Was this helpful?