Browse Source

nil validation has zero size

pull/102/head
Jae Kwon 10 years ago
parent
commit
a55cc5c65e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      types/block.go

+ 3
- 0
types/block.go View File

@ -224,6 +224,9 @@ func (v *Validation) Type() byte {
}
func (v *Validation) Size() int {
if v == nil {
return 0
}
return len(v.Precommits)
}


Loading…
Cancel
Save