Fix String() for nil votes, and non-full Validation

This commit is contained in:
Jae Kwon
2015-06-26 17:54:02 -07:00
parent 26c192b047
commit 027ad79f9c
+3
View File
@@ -54,6 +54,9 @@ func (vote *Vote) Copy() *Vote {
}
func (vote *Vote) String() string {
if vote == nil {
return "nil-Vote"
}
var typeString string
switch vote.Type {
case VoteTypePrevote: