MCPcopy Create free account
hub / github.com/tendermint/tendermint / String

Method String

types/validator.go:91–100  ·  view source on GitHub ↗

String returns a string representation of String. 1. address 2. public key 3. voting power 4. proposer priority

()

Source from the content-addressed store, hash-verified

89// 3. voting power
90// 4. proposer priority
91func (v *Validator) String() string {
92 if v == nil {
93 return "nil-Validator"
94 }
95 return fmt.Sprintf("Validator{%v %v VP:%v A:%v}",
96 v.Address,
97 v.PubKey,
98 v.VotingPower,
99 v.ProposerPriority)
100}
101
102// ValidatorListString returns a prettified validator list for logging purposes.
103func ValidatorListString(vals []*Validator) string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected