MCPcopy Create free account
hub / github.com/chain/txvm / GetBlock

Method GetBlock

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

Source from the content-addressed store, hash-verified

99type Store interface {
100 Height(context.Context) (uint64, error)
101 GetBlock(context.Context, uint64) (*bc.Block, error)
102 LatestSnapshot(context.Context) (*state.Snapshot, error)
103
104 SaveBlock(context.Context, *bc.Block) error

Callers 3

RecoverMethod · 0.65
GetBlockMethod · 0.65
InitialFunction · 0.65

Implementers 1

MemStoreprotocol/prottest/memstore/memstore.go

Calls

no outgoing calls

Tested by

no test coverage detected