GetHeaderByHash retrieves a block header from the database by hash, caching it if found.
(hash common.Hash)
| 1882 | // GetHeaderByHash retrieves a block header from the database by hash, caching it if |
| 1883 | // found. |
| 1884 | func (bc *BlockChain) GetHeaderByHash(hash common.Hash) *types.Header { |
| 1885 | return bc.hc.GetHeaderByHash(hash) |
| 1886 | } |
| 1887 | |
| 1888 | // HasHeader checks if a block header is present in the database or not, caching |
| 1889 | // it if present. |
no test coverage detected