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

Method String

types/part_set.go:103–105  ·  view source on GitHub ↗

String returns a string representation of PartSetHeader. 1. total number of parts 2. first 6 bytes of the hash

()

Source from the content-addressed store, hash-verified

101// 1. total number of parts
102// 2. first 6 bytes of the hash
103func (psh PartSetHeader) String() string {
104 return fmt.Sprintf("%v:%X", psh.Total, tmbytes.Fingerprint(psh.Hash))
105}
106
107func (psh PartSetHeader) IsZero() bool {
108 return psh.Total == 0 && len(psh.Hash) == 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected