Bitcoin Core 28.99.0
P2P Digital Currency
|
Helper for findBlock to selectively return pieces of block data. More...
#include <chain.h>
Public Member Functions | |
FoundBlock & | hash (uint256 &hash) |
FoundBlock & | height (int &height) |
FoundBlock & | time (int64_t &time) |
FoundBlock & | maxTime (int64_t &max_time) |
FoundBlock & | mtpTime (int64_t &mtp_time) |
FoundBlock & | inActiveChain (bool &in_active_chain) |
Return whether block is in the active (most-work) chain. More... | |
FoundBlock & | locator (CBlockLocator &locator) |
Return locator if block is in the active chain. More... | |
FoundBlock & | nextBlock (const FoundBlock &next_block) |
Return next block in the active chain if current block is in the active chain. More... | |
FoundBlock & | data (CBlock &data) |
Read block data from disk. More... | |
Public Attributes | |
uint256 * | m_hash = nullptr |
int * | m_height = nullptr |
int64_t * | m_time = nullptr |
int64_t * | m_max_time = nullptr |
int64_t * | m_mtp_time = nullptr |
bool * | m_in_active_chain = nullptr |
CBlockLocator * | m_locator = nullptr |
const FoundBlock * | m_next_block = nullptr |
CBlock * | m_data = nullptr |
bool | found = false |
Helper for findBlock to selectively return pieces of block data.
If block is found, data will be returned by setting specified output variables. If block is not found, output variables will keep their previous values.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
CBlockLocator* interfaces::FoundBlock::m_locator = nullptr |
const FoundBlock* interfaces::FoundBlock::m_next_block = nullptr |