Bitcoin Core  22.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
interfaces::FoundBlock Class Reference

Helper for findBlock to selectively return pieces of block data. More...

#include <chain.h>

Collaboration diagram for interfaces::FoundBlock:
[legend]

Public Member Functions

FoundBlockhash (uint256 &hash)
 
FoundBlockheight (int &height)
 
FoundBlocktime (int64_t &time)
 
FoundBlockmaxTime (int64_t &max_time)
 
FoundBlockmtpTime (int64_t &mtp_time)
 
FoundBlockinActiveChain (bool &in_active_chain)
 Return whether block is in the active (most-work) chain. More...
 
FoundBlocknextBlock (const FoundBlock &next_block)
 Return next block in the active chain if current block is in the active chain. More...
 
FoundBlockdata (CBlock &data)
 Read block data from disk. More...
 

Public Attributes

uint256m_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
 
const FoundBlockm_next_block = nullptr
 
CBlockm_data = nullptr
 

Detailed Description

Helper for findBlock to selectively return pieces of block data.

Definition at line 39 of file chain.h.

Member Function Documentation

◆ data()

FoundBlock& interfaces::FoundBlock::data ( CBlock data)
inline

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 53 of file chain.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hash()

FoundBlock& interfaces::FoundBlock::hash ( uint256 hash)
inline

Definition at line 42 of file chain.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ height()

FoundBlock& interfaces::FoundBlock::height ( int &  height)
inline

Definition at line 43 of file chain.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inActiveChain()

FoundBlock& interfaces::FoundBlock::inActiveChain ( bool &  in_active_chain)
inline

Return whether block is in the active (most-work) chain.

Definition at line 48 of file chain.h.

◆ maxTime()

FoundBlock& interfaces::FoundBlock::maxTime ( int64_t &  max_time)
inline

Definition at line 45 of file chain.h.

◆ mtpTime()

FoundBlock& interfaces::FoundBlock::mtpTime ( int64_t &  mtp_time)
inline

Definition at line 46 of file chain.h.

◆ nextBlock()

FoundBlock& interfaces::FoundBlock::nextBlock ( const FoundBlock next_block)
inline

Return next block in the active chain if current block is in the active chain.

Definition at line 50 of file chain.h.

◆ time()

FoundBlock& interfaces::FoundBlock::time ( int64_t &  time)
inline

Definition at line 44 of file chain.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_data

CBlock* interfaces::FoundBlock::m_data = nullptr

Definition at line 62 of file chain.h.

◆ m_hash

uint256* interfaces::FoundBlock::m_hash = nullptr

Definition at line 55 of file chain.h.

◆ m_height

int* interfaces::FoundBlock::m_height = nullptr

Definition at line 56 of file chain.h.

◆ m_in_active_chain

bool* interfaces::FoundBlock::m_in_active_chain = nullptr

Definition at line 60 of file chain.h.

◆ m_max_time

int64_t* interfaces::FoundBlock::m_max_time = nullptr

Definition at line 58 of file chain.h.

◆ m_mtp_time

int64_t* interfaces::FoundBlock::m_mtp_time = nullptr

Definition at line 59 of file chain.h.

◆ m_next_block

const FoundBlock* interfaces::FoundBlock::m_next_block = nullptr

Definition at line 61 of file chain.h.

◆ m_time

int64_t* interfaces::FoundBlock::m_time = nullptr

Definition at line 57 of file chain.h.


The documentation for this class was generated from the following file: