Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
testBlockChainImport
Function · 0.65
dump
Function · 0.65
validateImportedHeaders
Method · 0.65
GetModifiedAccountsByNumber
Method · 0.65
GetModifiedAccountsByHash
Method · 0.65
TraceBlockByHash
Method · 0.65
computeTxEnv
Method · 0.65
TestGetBlockHeaders
Function · 0.65
TestGetBlockBodies
Function · 0.65
GetBlock
Method · 0.65
RequestBodies
Method · 0.65
Implementers
1
BlockChain
core/blockchain.go
Calls
no outgoing calls
Tested by
4
testBlockChainImport
Function · 0.52
TestGetBlockHeaders
Function · 0.52
TestGetBlockBodies
Function · 0.52
RequestBodies
Method · 0.52