MCPcopy Create free account
hub / github.com/tendermint/tendermint / ValidateBasic

Method ValidateBasic

types/part_set.go:116–122  ·  view source on GitHub ↗

ValidateBasic performs basic validation.

()

Source from the content-addressed store, hash-verified

114
115// ValidateBasic performs basic validation.
116func (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
125func (psh *PartSetHeader) ToProto() tmproto.PartSetHeader {

Callers

nothing calls this directly

Calls 1

ValidateHashFunction · 0.85

Tested by

no test coverage detected