Skip to content

Files

Latest commit

8ff05b5 · Oct 21, 2020

History

History

poa

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 9, 2020
Oct 9, 2020
Oct 7, 2020
Oct 7, 2020
Oct 9, 2020
Oct 7, 2020
Oct 9, 2020
Oct 9, 2020
Oct 9, 2020
Oct 9, 2020
Oct 7, 2020
Oct 9, 2020
Oct 21, 2020
Oct 9, 2020
Oct 9, 2020
Oct 21, 2020

!! This module is still in beta and not fit for production use !!

How to find more information on the module


Please view to Proof of Authority module spec for more details on the commands defined in the How to sections

Link to Spec


How to install module


How to add the module to your application

  1. See the diff on this PR and emulate the changes in your application

  2. (OPTIONAL) Set up local network to test changes, can be copy/paste'd from this PR


How to use the module


How to add a validator to the validator set

  1. Create a CreateValidatorPOA transaction and submit it
appcli tx poa create-validator val1 `hex-encoded-public-key-of-the-validator` --trust-node --from validator --chain-id cash

  1. Verfiy that the CreateValidatorPOA tranaction was correctly processed
appcli query poa validator-poa val1 --trust-node --chain-id cash

How to vote on a validator to allow the validator to be added to the validator set

  1. Vote for a validator to join the validator set
appcli tx poa vote-validator val1 --trust-node --from validator --chain-id cash

  1. Query for the vote to see if the transaction was successful
appcli query poa vote-poa val1 `validator address` --trust-node --chain-id cash

How to query all votes and validators

  1. Query all votes
appcli query poa votes

  1. Query all validators
appcli query poa validators