From 8b6d489755cea86c0d0ca32f6f93520582b2d11e Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Tue, 5 May 2015 16:58:26 -0700 Subject: [PATCH] Update vote log --- consensus/reactor.go | 2 +- types/vote.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/reactor.go b/consensus/reactor.go index 31171e52..8a1029ff 100644 --- a/consensus/reactor.go +++ b/consensus/reactor.go @@ -892,5 +892,5 @@ type HasVoteMessage struct { } func (m *HasVoteMessage) String() string { - return fmt.Sprintf("[HasVote %v/%v T:%X VI:%v]", m.Height, m.Round, m.Type, m.Index) + return fmt.Sprintf("[HasVote VI:%v V:Vote{%v/%02d/%v}]", m.Index, m.Height, m.Round, m.Type) } diff --git a/types/vote.go b/types/vote.go index 108f8f0a..b4bd7a2f 100644 --- a/types/vote.go +++ b/types/vote.go @@ -71,5 +71,5 @@ func (vote *Vote) String() string { panic("Unknown vote type") } - return fmt.Sprintf("%v{%v/%v %X#%v %v}", typeString, vote.Height, vote.Round, Fingerprint(vote.BlockHash), vote.BlockParts, vote.Signature) + return fmt.Sprintf("Vote{%v/%02d/%v(%v) %X#%v %v}", vote.Height, vote.Round, vote.Type, typeString, Fingerprint(vote.BlockHash), vote.BlockParts, vote.Signature) }