Bitcoin Core 28.99.0
P2P Digital Currency
Public Types | Public Attributes | List of all members
TransactionStatus Struct Reference

UI model for transaction status. More...

#include <transactionrecord.h>

Collaboration diagram for TransactionStatus:
[legend]

Public Types

enum  Status {
  Confirmed , Unconfirmed , Confirming , Conflicted ,
  Abandoned , Immature , NotAccepted
}
 

Public Attributes

bool countsForBalance {false}
 Transaction counts towards available balance. More...
 
std::string sortKey
 Sorting key based on status. More...
 
uint256 m_cur_block_hash {}
 Current block hash (to know whether cached status is still valid) More...
 
bool needsUpdate {false}
 
Generated (mined) transactions
int matures_in {0}
 
Reported status
Status status {Unconfirmed}
 
qint64 depth {0}
 

Detailed Description

UI model for transaction status.

The transaction status is the part of a transaction that will change over time.

Definition at line 23 of file transactionrecord.h.

Member Enumeration Documentation

◆ Status

Enumerator
Confirmed 

Have 6 or more confirmations (normal tx) or fully mature (mined tx)

Unconfirmed 

Normal (sent/received) transactions.

Not yet mined into a block

Confirming 

Confirmed, but waiting for the recommended number of confirmations.

Conflicted 

Conflicts with other transaction or mempool.

Abandoned 

Abandoned from the wallet.

Immature 

Generated (mined) transactions.

Mined but waiting for maturity

NotAccepted 

Mined but not accepted.

Definition at line 24 of file transactionrecord.h.

Member Data Documentation

◆ countsForBalance

bool TransactionStatus::countsForBalance {false}

Transaction counts towards available balance.

Definition at line 37 of file transactionrecord.h.

◆ depth

qint64 TransactionStatus::depth {0}

Definition at line 49 of file transactionrecord.h.

◆ m_cur_block_hash

uint256 TransactionStatus::m_cur_block_hash {}

Current block hash (to know whether cached status is still valid)

Definition at line 53 of file transactionrecord.h.

◆ matures_in

int TransactionStatus::matures_in {0}

Definition at line 43 of file transactionrecord.h.

◆ needsUpdate

bool TransactionStatus::needsUpdate {false}

Definition at line 55 of file transactionrecord.h.

◆ sortKey

std::string TransactionStatus::sortKey

Sorting key based on status.

Definition at line 39 of file transactionrecord.h.

◆ status

Status TransactionStatus::status {Unconfirmed}

Definition at line 48 of file transactionrecord.h.


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