mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 22:21:21 +00:00
Fix String() for nil votes, and non-full Validation
This commit is contained in:
parent
26c192b047
commit
027ad79f9c
@ -54,6 +54,9 @@ func (vote *Vote) Copy() *Vote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (vote *Vote) String() string {
|
func (vote *Vote) String() string {
|
||||||
|
if vote == nil {
|
||||||
|
return "nil-Vote"
|
||||||
|
}
|
||||||
var typeString string
|
var typeString string
|
||||||
switch vote.Type {
|
switch vote.Type {
|
||||||
case VoteTypePrevote:
|
case VoteTypePrevote:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user