createValidator
to register itself as a candidate validator and set the following parameters:rewardTo
, the account that receives the validator's rewardintroduction
, a short UTF8 string (no longer than 32 bytes) describing the validator, whose tailing bytes are zeros.pubkey
, an ed25519 pubkey for which the coinbase transactions' outputs can vote.createValidator
again. Instead, it can use editValidator
to change rewardTo
and introduction
, but the pubkey
cannot be changed.createValidator
and editValidator
.retire
to mark its status as "retiring". The votes to a retiring validator is not counted when electing the next quorum.sumVotingPower
function to sum all the voting power owned by the address set specified in addrList
. It also returns the total voting power owned by all the active validators. These two parameters are returned as summedPower
and totalPower
, respectively.sumVotingPower
to decide whether the votes are enough. In such a way, the validator set acts as Supreme Court to decide some cases finally.increaseMinGasPrice
(decreaseMinGasPrice
) function, respectively. A qualified EOA is a validator or a validator's rewardTo
account. This method may cause chaos of meaningless rising and falling.rewardTo
accounts. Instead, they are pending till the next epoch's end. That is, the rewards gained in epoch N will be given to a validator's rewardTo
account at the end of epoch N+1.rewardTo
account.