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

Method CurrentBlock

core/tx_pool.go:120–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118// some pre checks in tx pool and event subscribers.
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

Callers 15

NewTxPoolFunction · 0.65
loopMethod · 0.65
resetMethod · 0.65
testForkFunction · 0.65
TestLastBlockFunction · 0.65
TestBrokenBlockChainFunction · 0.65
testReorgFunction · 0.65
rollbackMethod · 0.65
CodeAtMethod · 0.65
BalanceAtMethod · 0.65
NonceAtMethod · 0.65

Implementers 2

testBlockChaincore/tx_pool_test.go
BlockChaincore/blockchain.go

Calls

no outgoing calls

Tested by 5

testForkFunction · 0.52
TestLastBlockFunction · 0.52
TestBrokenBlockChainFunction · 0.52
testReorgFunction · 0.52