GetBlockHashesFromHash retrieves a number of block hashes starting at a given hash, fetching towards the genesis block.
(hash common.Hash, max uint64)
| 1894 | // GetBlockHashesFromHash retrieves a number of block hashes starting at a given |
| 1895 | // hash, fetching towards the genesis block. |
| 1896 | func (bc *BlockChain) GetBlockHashesFromHash(hash common.Hash, max uint64) []common.Hash { |
| 1897 | return bc.hc.GetBlockHashesFromHash(hash, max) |
| 1898 | } |
| 1899 | |
| 1900 | // GetAncestor retrieves the Nth ancestor of a given block. It assumes that either the given block or |
| 1901 | // a close ancestor of it is canonical. maxNonCanonical points to a downwards counter limiting the |
no outgoing calls