Makam Aravind
Makam Aravind

Reputation: 43

How to add validators in POA system (node-template) in runtime?

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

Answers (2)

Justin Pham
Justin Pham

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

dm4
dm4

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 the aura section to include Sr25519 addresses.
Modify the grandpa section to include Ed25519 addresses and a voting weight.

Upvotes: 0

Related Questions