diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-01-29 14:22:17 +0800 |
---|---|---|
committer | Mission Liao <mission.liao@dexon.org> | 2019-01-29 14:22:17 +0800 |
commit | ffacadadcef741d7b14112beab55df889a7971c8 (patch) | |
tree | 8901fc1caf6d188639c6918a8533a47e6fc130aa | |
parent | 6b8d0a5875b23f9d521d31da3d0d47dc72ccacd9 (diff) | |
download | dexon-consensus-ffacadadcef741d7b14112beab55df889a7971c8.tar.gz dexon-consensus-ffacadadcef741d7b14112beab55df889a7971c8.tar.zst dexon-consensus-ffacadadcef741d7b14112beab55df889a7971c8.zip |
Fixup: dump vote type in string
-rw-r--r-- | core/types/vote.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/types/vote.go b/core/types/vote.go index 27c7025..0e53692 100644 --- a/core/types/vote.go +++ b/core/types/vote.go @@ -82,7 +82,7 @@ type Vote struct { } func (v *Vote) String() string { - return fmt.Sprintf("Vote{BP:%s %s Period:%d Type:%d Hash:%s}", + return fmt.Sprintf("Vote{BP:%s %s Period:%d Type:%s Hash:%s}", v.ProposerID.String()[:6], &v.Position, v.Period, v.Type, v.BlockHash.String()[:6]) } |