IsZero returns true if this is the BlockID of a nil block.
()
| 1197 | |
| 1198 | // IsZero returns true if this is the BlockID of a nil block. |
| 1199 | func (blockID BlockID) IsZero() bool { |
| 1200 | return len(blockID.Hash) == 0 && |
| 1201 | blockID.PartSetHeader.IsZero() |
| 1202 | } |
| 1203 | |
| 1204 | // IsComplete returns true if this is a valid BlockID of a non-nil block. |
| 1205 | func (blockID BlockID) IsComplete() bool { |
no outgoing calls