Helper for findBlock to selectively return pieces of block data.
More...
#include <chain.h>
Helper for findBlock to selectively return pieces of block data.
Definition at line 48 of file chain.h.
◆ data()
Read block data from disk.
If the block exists but doesn't have data (for example due to pruning), the CBlock variable will be set to null.
Definition at line 83 of file chain.h.
◆ hash()
◆ height()
FoundBlock & interfaces::FoundBlock::height |
( |
int & |
height | ) |
|
|
inline |
◆ inActiveChain()
FoundBlock & interfaces::FoundBlock::inActiveChain |
( |
bool & |
in_active_chain | ) |
|
|
inline |
Return whether block is in the active (most-work) chain.
Definition at line 71 of file chain.h.
◆ maxTime()
FoundBlock & interfaces::FoundBlock::maxTime |
( |
int64_t & |
max_time | ) |
|
|
inline |
◆ mtpTime()
FoundBlock & interfaces::FoundBlock::mtpTime |
( |
int64_t & |
mtp_time | ) |
|
|
inline |
◆ nextBlock()
Return next block in the active chain if current block is in the active chain.
Definition at line 77 of file chain.h.
◆ time()
FoundBlock & interfaces::FoundBlock::time |
( |
int64_t & |
time | ) |
|
|
inline |
◆ m_data
CBlock* interfaces::FoundBlock::m_data = nullptr |
◆ m_hash
BlockHash* interfaces::FoundBlock::m_hash = nullptr |
◆ m_height
int* interfaces::FoundBlock::m_height = nullptr |
◆ m_in_active_chain
bool* interfaces::FoundBlock::m_in_active_chain = nullptr |
◆ m_max_time
int64_t* interfaces::FoundBlock::m_max_time = nullptr |
◆ m_mtp_time
int64_t* interfaces::FoundBlock::m_mtp_time = nullptr |
◆ m_next_block
const FoundBlock* interfaces::FoundBlock::m_next_block = nullptr |
◆ m_time
int64_t* interfaces::FoundBlock::m_time = nullptr |
The documentation for this class was generated from the following file: