pretty print ConsensusState

This commit is contained in:
Jae Kwon
2014-10-18 01:42:33 -07:00
parent ca1d8a54be
commit 9ea504030e
10 changed files with 179 additions and 32 deletions
+5
View File
@@ -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{}