HasHeader checks if a block header is present in the database or not, caching it if present.
(hash common.Hash, number uint64)
| 1888 | // HasHeader checks if a block header is present in the database or not, caching |
| 1889 | // it if present. |
| 1890 | func (bc *BlockChain) HasHeader(hash common.Hash, number uint64) bool { |
| 1891 | return bc.hc.HasHeader(hash, number) |
| 1892 | } |
| 1893 | |
| 1894 | // GetBlockHashesFromHash retrieves a number of block hashes starting at a given |
| 1895 | // hash, fetching towards the genesis block. |