MCPcopy Index your code
hub / github.com/chain/Core / GetBlock

Method GetBlock

protocol/protocol.go:75–75  ·  view source on GitHub ↗
(context.Context, uint64)

Source from the content-addressed store, hash-verified

73type Store interface {
74 Height(context.Context) (uint64, error)
75 GetBlock(context.Context, uint64) (*legacy.Block, error)
76 LatestSnapshot(context.Context) (*state.Snapshot, uint64, error)
77
78 SaveBlock(context.Context, *legacy.Block) error

Callers 8

RecoverMethod · 0.65
makeEmptyBlockFunction · 0.65
GetBlockMethod · 0.65
InitialFunction · 0.65
MakeBlockFunction · 0.65
waitForTxInBlockMethod · 0.65
ValidateAndSignBlockMethod · 0.65
processBlockMethod · 0.65

Implementers 2

MemStoreprotocol/prottest/memstore/memstore.go
Storecore/txdb/store.go

Calls

no outgoing calls

Tested by 1

makeEmptyBlockFunction · 0.52