IsComplete returns true if this is a valid BlockID of a non-nil block.
()
| 1203 | |
| 1204 | // IsComplete returns true if this is a valid BlockID of a non-nil block. |
| 1205 | func (blockID BlockID) IsComplete() bool { |
| 1206 | return len(blockID.Hash) == tmhash.Size && |
| 1207 | blockID.PartSetHeader.Total > 0 && |
| 1208 | len(blockID.PartSetHeader.Hash) == tmhash.Size |
| 1209 | } |
| 1210 | |
| 1211 | // String returns a human readable string representation of the BlockID. |
| 1212 | // |
no outgoing calls