Reputation: 43
Can we add validators in runtime in POA system??(clone node-template)
Is this functionality available??
or we can only configure the validators before chain runs?
Upvotes: 0
Views: 234
Reputation: 193
You can just need to add pallet_session and create some mechanism to allow pallet_session to pick a new set of validators for every session.
There are some code examples to you take a look here
Upvotes: 0
Reputation: 1436
You can configure the validator before running a chain in your chain spec file.
You can find more details at Substrate tutorial. Start a Private Network > Add Validators says:
To add validators:
Modify theaura
section to include Sr25519 addresses.
Modify thegrandpa
section to include Ed25519 addresses and a voting weight.
Upvotes: 0