CurrentHeader retrieves the current head header of the canonical chain. The header is retrieved from the HeaderChain's internal cache.
()
| 1870 | // CurrentHeader retrieves the current head header of the canonical chain. The |
| 1871 | // header is retrieved from the HeaderChain's internal cache. |
| 1872 | func (bc *BlockChain) CurrentHeader() *types.Header { |
| 1873 | return bc.hc.CurrentHeader() |
| 1874 | } |
| 1875 | |
| 1876 | // GetHeader retrieves a block header from the database by hash and number, |
| 1877 | // caching it if found. |