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

Method GetBlockByHash

protocols/cpc/syncer/syncer.go:141–141  ·  view source on GitHub ↗

GetBlockByHash retrieves a block from the local chain.

(common.Hash)

Source from the content-addressed store, hash-verified

139
140 // GetBlockByHash retrieves a block from the local chain.
141 GetBlockByHash(common.Hash) *types.Block
142
143 GetBlockByNumber(uint64) *types.Block
144

Callers 11

testBlockChainImportFunction · 0.65
dumpFunction · 0.65
TraceBlockByHashMethod · 0.65
computeTxEnvMethod · 0.65
TestGetBlockHeadersFunction · 0.65
TestGetBlockBodiesFunction · 0.65
GetBlockMethod · 0.65
RequestBodiesMethod · 0.65

Implementers 1

BlockChaincore/blockchain.go

Calls

no outgoing calls

Tested by 4

testBlockChainImportFunction · 0.52
TestGetBlockHeadersFunction · 0.52
TestGetBlockBodiesFunction · 0.52
RequestBodiesMethod · 0.52