Bitcoin Core  22.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
CWalletTx::Confirmation Struct Reference

Confirmation includes tx status and a triplet of {block height/block hash/tx index in block} at which tx has been confirmed. More...

#include <transaction.h>

Collaboration diagram for CWalletTx::Confirmation:
[legend]

Public Member Functions

 Confirmation (Status status=UNCONFIRMED, int block_height=0, uint256 block_hash=uint256(), int block_index=0)
 

Public Attributes

Status status
 
int block_height
 
uint256 hashBlock
 
int nIndex
 

Detailed Description

Confirmation includes tx status and a triplet of {block height/block hash/tx index in block} at which tx has been confirmed.

All three are set to 0 if tx is unconfirmed or abandoned. Meaning of these fields changes with CONFLICTED state where they instead point to block hash and block height of the deepest conflicting tx.

Definition at line 160 of file transaction.h.

Constructor & Destructor Documentation

◆ Confirmation()

CWalletTx::Confirmation::Confirmation ( Status  status = UNCONFIRMED,
int  block_height = 0,
uint256  block_hash = uint256(),
int  block_index = 0 
)
inline

Definition at line 165 of file transaction.h.

Member Data Documentation

◆ block_height

int CWalletTx::Confirmation::block_height

Definition at line 162 of file transaction.h.

◆ hashBlock

uint256 CWalletTx::Confirmation::hashBlock

Definition at line 163 of file transaction.h.

◆ nIndex

int CWalletTx::Confirmation::nIndex

Definition at line 164 of file transaction.h.

◆ status

Status CWalletTx::Confirmation::status

Definition at line 161 of file transaction.h.


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