ValidateBasic performs basic validation.
()
| 114 | |
| 115 | // ValidateBasic performs basic validation. |
| 116 | func (psh PartSetHeader) ValidateBasic() error { |
| 117 | // Hash can be empty in case of POLBlockID.PartSetHeader in Proposal. |
| 118 | if err := ValidateHash(psh.Hash); err != nil { |
| 119 | return fmt.Errorf("wrong Hash: %w", err) |
| 120 | } |
| 121 | return nil |
| 122 | } |
| 123 | |
| 124 | // ToProto converts PartSetHeader to protobuf |
| 125 | func (psh *PartSetHeader) ToProto() tmproto.PartSetHeader { |
nothing calls this directly
no test coverage detected