ValidateBasic performs basic validation.
()
| 67 | |
| 68 | // ValidateBasic performs basic validation. |
| 69 | func (bm *BlockMeta) ValidateBasic() error { |
| 70 | if err := bm.BlockID.ValidateBasic(); err != nil { |
| 71 | return err |
| 72 | } |
| 73 | if !bytes.Equal(bm.BlockID.Hash, bm.Header.Hash()) { |
| 74 | return fmt.Errorf("expected BlockID#Hash and Header#Hash to be the same, got %X != %X", |
| 75 | bm.BlockID.Hash, bm.Header.Hash()) |
| 76 | } |
| 77 | return nil |
| 78 | } |
nothing calls this directly
no test coverage detected