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

Method GetBlock

core/tx_pool.go:121–121  ·  view source on GitHub ↗
(hash common.Hash, number uint64)

Source from the content-addressed store, hash-verified

119type blockChain interface {
120 CurrentBlock() *types.Block
121 GetBlock(hash common.Hash, number uint64) *types.Block
122 StateAt(root common.Hash) (*state.StateDB, error)
123
124 SubscribeChainHeadEvent(ch chan<- ChainHeadEvent) event.Subscription

Callers 6

resetMethod · 0.65
BroadcastBlockMethod · 0.65
traceChainMethod · 0.65
traceBlockMethod · 0.65
computeStateDBMethod · 0.65
computeTxEnvMethod · 0.65

Implementers 2

testBlockChaincore/tx_pool_test.go
BlockChaincore/blockchain.go

Calls

no outgoing calls

Tested by

no test coverage detected