mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 04:01:55 +00:00
nil validation has zero size
This commit is contained in:
@@ -224,6 +224,9 @@ func (v *Validation) Type() byte {
|
||||
}
|
||||
|
||||
func (v *Validation) Size() int {
|
||||
if v == nil {
|
||||
return 0
|
||||
}
|
||||
return len(v.Precommits)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user