Look up a block index entry by hash.
Synopses
Declared in <node/blockstorage.h>
Look up a block index entry by hash.
[[requires_capability(0x7fbc8f17af88), requires_capability(0x7fbca3f044b8), requires_capability(0x7fbcace16708), requires_capability(0x7fbca6c58378), requires_capability(0x7fbcad35fb18), requires_capability(0x7fbc9fba18d8)]]
CBlockIndex*
LookupBlockIndex(uint256 const& hash);
Look up a block index entry by hash.
[[requires_capability(0x7fbc8f17b028), requires_capability(0x7fbca3f04558), requires_capability(0x7fbcace167a8), requires_capability(0x7fbca6c58418), requires_capability(0x7fbcad35fbb8), requires_capability(0x7fbc9fba1978)]]
CBlockIndex const*
LookupBlockIndex(uint256 const& hash) const;
Return Value
The block index entry, or nullptr if the hash is unknown.
Parameters
Name |
Description |
hash |
The block hash to look up. |
Created with MrDocs