GetHeader retrieves a block header from the database by hash and number, caching it if found.
(hash common.Hash, number uint64)
| 1876 | // GetHeader retrieves a block header from the database by hash and number, |
| 1877 | // caching it if found. |
| 1878 | func (bc *BlockChain) GetHeader(hash common.Hash, number uint64) *types.Header { |
| 1879 | return bc.hc.GetHeader(hash, number) |
| 1880 | } |
| 1881 | |
| 1882 | // GetHeaderByHash retrieves a block header from the database by hash, caching it if |
| 1883 | // found. |