Volatile state for each Validator NOTE: The ProposerPriority is not included in Validator.Hash(); make sure to update that method if changes are made here
| 16 | // NOTE: The ProposerPriority is not included in Validator.Hash(); |
| 17 | // make sure to update that method if changes are made here |
| 18 | type Validator struct { |
| 19 | Address Address `json:"address"` |
| 20 | PubKey crypto.PubKey `json:"pub_key"` |
| 21 | VotingPower int64 `json:"voting_power"` |
| 22 | |
| 23 | ProposerPriority int64 `json:"proposer_priority"` |
| 24 | } |
| 25 | |
| 26 | // NewValidator returns a new validator with the given pubkey and voting power. |
| 27 | func NewValidator(pubKey crypto.PubKey, votingPower int64) *Validator { |
nothing calls this directly
no outgoing calls
no test coverage detected