MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / Validator

Struct Validator

types/validator.go:18–24  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

16// NOTE: The ProposerPriority is not included in Validator.Hash();
17// make sure to update that method if changes are made here
18type 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.
27func NewValidator(pubKey crypto.PubKey, votingPower int64) *Validator {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected