Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
testFork
Function · 0.65
testReorg
Function · 0.65
TestBlocksInsertNonceError
Function · 0.65
BlockByNumber
Method · 0.65
dump
Function · 0.65
HeaderByNumber
Method · 0.65
DumpBlock
Method · 0.65
GetModifiedAccountsByNumber
Method · 0.65
handleSyncMsg
Method · 0.65
TraceChain
Method · 0.65
traceChain
Method · 0.65
TraceBlockByNumber
Method · 0.65
Implementers
1
BlockChain
core/blockchain.go
Calls
no outgoing calls
Tested by
11
testFork
Function · 0.52
testReorg
Function · 0.52
TestBlocksInsertNonceError
Function · 0.52
HeaderByNumber
Method · 0.52
TestGetBlockHeaders
Function · 0.52
TestGetBlockBodies
Function · 0.52
testGetNodeData
Function · 0.52
testGetReceipt
Function · 0.52
validateReceiptsByManyPeers
Function · 0.52
TestGetBalanceAtMiddleBlock
Function · 0.52
returnBlocksLoop
Method · 0.52