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

Struct Block

types/block.go:43–50  ·  view source on GitHub ↗

Block defines the atomic unit of a Tendermint blockchain.

Source from the content-addressed store, hash-verified

41
42// Block defines the atomic unit of a Tendermint blockchain.
43type Block struct {
44 mtx tmsync.Mutex
45
46 Header `json:"header"`
47 Data `json:"data"`
48 Evidence EvidenceData `json:"evidence"`
49 LastCommit *Commit `json:"last_commit"`
50}
51
52// ValidateBasic performs basic validation that doesn't involve state data.
53// It checks the internal consistency of the block.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected