CurrentHeader retrieves the current head header of the canonical chain. The header is retrieved from the HeaderChain's internal cache.
()
| 386 | // CurrentHeader retrieves the current head header of the canonical chain. The |
| 387 | // header is retrieved from the HeaderChain's internal cache. |
| 388 | func (hc *HeaderChain) CurrentHeader() *types.Header { |
| 389 | return hc.currentHeader.Load().(*types.Header) |
| 390 | } |
| 391 | |
| 392 | // CurrentBlock returns nil! |
| 393 | func (hc *HeaderChain) CurrentBlock() *types.Block { |
no outgoing calls
no test coverage detected