1

Substrate has provided some pre-defined functional pallets. We need to configure these pallet in our custom runtime in order to use them.

Some of these pallets like pallet_treasury, pallet_collective requires some changes to genesis config. If any one can please share some resource that explains the nitty-gritty of these configurations.

1 Answer 1

2

Configs are some parameters which don't touch the storage. You can configure them in the runtime.

Configure the pallet-balances.

https://github.com/paritytech/substrate/blob/8cfe326e4e33c5077fc67f197d6a13dd871881c7/bin/node/runtime/src/lib.rs#L435-L445


GenesisConfigs are some data that you want to set into the genesis state. You can configure them in the chain spec.

Setup the pallet-balances genesis state.

https://github.com/paritytech/substrate/blob/8cfe326e4e33c5077fc67f197d6a13dd871881c7/bin/node/cli/src/chain_spec.rs#L299-L301

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.