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

Method GasLimit

core/blockchain.go:468–470  ·  view source on GitHub ↗

GasLimit returns the gas limit of the current HEAD block.

()

Source from the content-addressed store, hash-verified

466
467// GasLimit returns the gas limit of the current HEAD block.
468func (bc *BlockChain) GasLimit() uint64 {
469 return bc.CurrentBlock().GasLimit()
470}
471
472// CurrentBlock retrieves the current head block of the canonical chain. The
473// block is retrieved from the blockchain's internal cache.

Callers 5

GenerateChainFunction · 0.45
CalcGasLimitFunction · 0.45
ProcessMethod · 0.45
CreateImpeachBlockMethod · 0.45
CreateImpeachBlockAtMethod · 0.45

Calls 1

CurrentBlockMethod · 0.95

Tested by

no test coverage detected