aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/dexon-foundation/dexon-consensus/core/types/vote.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-11-20 13:51:27 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:18 +0800
commit194c8fdc922b4173cf433e8f92711459b97c3ab0 (patch)
tree337ebd9c4a22cec51e32d6f03d15988156ad137b /vendor/github.com/dexon-foundation/dexon-consensus/core/types/vote.go
parentd035ac7c8c624fc884dbc300a2ec7dcaf8dc1905 (diff)
downloadgo-tangerine-194c8fdc922b4173cf433e8f92711459b97c3ab0.tar
go-tangerine-194c8fdc922b4173cf433e8f92711459b97c3ab0.tar.gz
go-tangerine-194c8fdc922b4173cf433e8f92711459b97c3ab0.tar.bz2
go-tangerine-194c8fdc922b4173cf433e8f92711459b97c3ab0.tar.lz
go-tangerine-194c8fdc922b4173cf433e8f92711459b97c3ab0.tar.xz
go-tangerine-194c8fdc922b4173cf433e8f92711459b97c3ab0.tar.zst
go-tangerine-194c8fdc922b4173cf433e8f92711459b97c3ab0.zip
vendor: sync to latest core (#37)
Diffstat (limited to 'vendor/github.com/dexon-foundation/dexon-consensus/core/types/vote.go')
-rw-r--r--vendor/github.com/dexon-foundation/dexon-consensus/core/types/vote.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/dexon-foundation/dexon-consensus/core/types/vote.go b/vendor/github.com/dexon-foundation/dexon-consensus/core/types/vote.go
index 12c3af892..7601542ae 100644
--- a/vendor/github.com/dexon-foundation/dexon-consensus/core/types/vote.go
+++ b/vendor/github.com/dexon-foundation/dexon-consensus/core/types/vote.go
@@ -52,7 +52,8 @@ type Vote struct {
}
func (v *Vote) String() string {
- return fmt.Sprintf("Vote[%s:%s](%d:%d):%s", v.ProposerID.String()[:6],
+ return fmt.Sprintf("Vote{BP:%s %s Period:%d Type:%d Hash:%s}",
+ v.ProposerID.String()[:6],
&v.Position, v.Period, v.Type, v.BlockHash.String()[:6])
}