MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / StringShort

Method StringShort

types/block.go:212–217  ·  view source on GitHub ↗

StringShort returns a shortened string representation of the block.

()

Source from the content-addressed store, hash-verified

210
211// StringShort returns a shortened string representation of the block.
212func (b *Block) StringShort() string {
213 if b == nil {
214 return "nil-Block"
215 }
216 return fmt.Sprintf("Block#%X", b.Hash())
217}
218
219// ToProto converts Block to protobuf
220func (b *Block) ToProto() (*tmproto.Block, error) {

Callers 5

PublishEventNewBlockMethod · 0.45
TestBlockStringFunction · 0.45
defaultReceivePrecommitFunction · 0.45
addVoteMethod · 0.45
replayConsoleLoopMethod · 0.45

Calls 1

HashMethod · 0.95

Tested by 1

TestBlockStringFunction · 0.36