mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-21 07:24:36 +00:00
pretty print ConsensusState
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package state
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
. "github.com/tendermint/tendermint/binary"
|
||||
@@ -73,6 +74,10 @@ func (v *Validator) CompareAccum(other *Validator) *Validator {
|
||||
}
|
||||
}
|
||||
|
||||
func (v *Validator) String() string {
|
||||
return fmt.Sprintf("Validator{%v VP:%v A:%v}", v.Account, v.VotingPower, v.Accum)
|
||||
}
|
||||
|
||||
//-------------------------------------
|
||||
|
||||
var ValidatorCodec = validatorCodec{}
|
||||
|
||||
Reference in New Issue
Block a user