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

Method String

types/block.go:1226–1228  ·  view source on GitHub ↗

String returns a human readable string representation of the BlockID. 1. hash 2. part set header See PartSetHeader#String

()

Source from the content-addressed store, hash-verified

1224//
1225// See PartSetHeader#String
1226func (blockID BlockID) String() string {
1227 return fmt.Sprintf(`%v:%v`, blockID.Hash, blockID.PartSetHeader)
1228}
1229
1230// ToProto converts BlockID to protobuf
1231func (blockID *BlockID) ToProto() tmproto.BlockID {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected