GasLimit returns the gas limit of the current HEAD block.
()
| 466 | |
| 467 | // GasLimit returns the gas limit of the current HEAD block. |
| 468 | func (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. |
no test coverage detected