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

Method GetBlockByNumber

protocols/cpc/syncer/syncer.go:143–143  ·  view source on GitHub ↗
(uint64)

Source from the content-addressed store, hash-verified

141 GetBlockByHash(common.Hash) *types.Block
142
143 GetBlockByNumber(uint64) *types.Block
144
145 // CurrentBlock retrieves the head block from the local chain.
146 CurrentBlock() *types.Block

Callers 15

testForkFunction · 0.65
testReorgFunction · 0.65
BlockByNumberMethod · 0.65
dumpFunction · 0.65
HeaderByNumberMethod · 0.65
DumpBlockMethod · 0.65
handleSyncMsgMethod · 0.65
TraceChainMethod · 0.65
traceChainMethod · 0.65
TraceBlockByNumberMethod · 0.65

Implementers 1

BlockChaincore/blockchain.go

Calls

no outgoing calls

Tested by 11

testForkFunction · 0.52
testReorgFunction · 0.52
HeaderByNumberMethod · 0.52
TestGetBlockHeadersFunction · 0.52
TestGetBlockBodiesFunction · 0.52
testGetNodeDataFunction · 0.52
testGetReceiptFunction · 0.52
returnBlocksLoopMethod · 0.52