String returns a string representation of String. 1. address 2. public key 3. voting power 4. proposer priority
()
| 89 | // 3. voting power |
| 90 | // 4. proposer priority |
| 91 | func (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. |
| 103 | func ValidatorListString(vals []*Validator) string { |
nothing calls this directly
no outgoing calls
no test coverage detected