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

Method LoadBlock

blockchain/v2/reactor.go:26–26  ·  view source on GitHub ↗
(height int64)

Source from the content-addressed store, hash-verified

24
25type blockStore interface {
26 LoadBlock(height int64) *types.Block
27 SaveBlock(*types.Block, *types.PartSet, *types.Commit)
28 Base() int64
29 Height() int64

Callers 15

TestBlockFetchAtHeightFunction · 0.65
eventReIndexFunction · 0.65
respondToPeerMethod · 0.65
TestNoBlockResponseFunction · 0.65
ReceiveEnvelopeMethod · 0.65
sendBlockToPeerMethod · 0.65
BlockFunction · 0.65
BlockSearchFunction · 0.65
TxFunction · 0.65
TxSearchFunction · 0.65

Implementers 4

BlockStorestate/mocks/block_store.go
BlockStorestore/store.go
mockBlockStorerpc/core/blocks_test.go
mockBlockStoreconsensus/replay_test.go

Calls

no outgoing calls

Tested by 5

TestBlockFetchAtHeightFunction · 0.52
TestNoBlockResponseFunction · 0.52