aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/vote.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-05 13:29:15 +0800
committerGitHub <noreply@github.com>2018-11-05 13:29:15 +0800
commitc4541185c1d2502dffe09de1af52594f6fae16a6 (patch)
tree7ab3afa6cb30f2bd7ffdf5158da2e50384dab136 /core/types/vote.go
parent62a00d3cf89330073df381caa7d913deeb01822d (diff)
downloadtangerine-consensus-c4541185c1d2502dffe09de1af52594f6fae16a6.tar
tangerine-consensus-c4541185c1d2502dffe09de1af52594f6fae16a6.tar.gz
tangerine-consensus-c4541185c1d2502dffe09de1af52594f6fae16a6.tar.bz2
tangerine-consensus-c4541185c1d2502dffe09de1af52594f6fae16a6.tar.lz
tangerine-consensus-c4541185c1d2502dffe09de1af52594f6fae16a6.tar.xz
tangerine-consensus-c4541185c1d2502dffe09de1af52594f6fae16a6.tar.zst
tangerine-consensus-c4541185c1d2502dffe09de1af52594f6fae16a6.zip
core: notify consensus height for genesis rounds (#296)
* Add notifyGenesisRounds * Log round for types.Vote and types.Block
Diffstat (limited to 'core/types/vote.go')
-rw-r--r--core/types/vote.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/types/vote.go b/core/types/vote.go
index 32fb898..5b99f22 100644
--- a/core/types/vote.go
+++ b/core/types/vote.go
@@ -47,9 +47,8 @@ type Vote struct {
}
func (v *Vote) String() string {
- return fmt.Sprintf("Vote[%s:%d:%d](%d:%d):%s",
- v.ProposerID.String()[:6], v.Position.ChainID, v.Position.Height,
- v.Period, v.Type, v.BlockHash.String()[:6])
+ return fmt.Sprintf("Vote[%s:%s](%d:%d):%s", v.ProposerID.String()[:6],
+ &v.Position, v.Period, v.Type, v.BlockHash.String()[:6])
}
// Clone returns a deep copy of a vote.