Fabcoin Core  0.16.2
P2P Digital Currency
Public Types | Public Member Functions | Public Attributes | List of all members
TransactionStatus Class Reference

UI model for transaction status. More...

#include <transactionrecord.h>

Public Types

enum  Status {
  Confirmed, OpenUntilDate, OpenUntilBlock, Offline,
  Unconfirmed, Confirming, Conflicted, Abandoned,
  Immature, MaturesWarning, NotAccepted
}
 

Public Member Functions

 TransactionStatus ()
 

Public Attributes

bool countsForBalance
 Transaction counts towards available balance. More...
 
std::string sortKey
 Sorting key based on status. More...
 
int cur_num_blocks
 Current number of blocks (to know whether cached status is still valid) More...
 
bool needsUpdate
 
Generated (mined) transactions
int matures_in
 
Reported status
Status status
 
qint64 depth
 
qint64 open_for
 Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined before finalization. More...
 

Detailed Description

UI model for transaction status.

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

Definition at line 19 of file transactionrecord.h.

Member Enumeration Documentation

Enumerator
Confirmed 

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

OpenUntilDate 

Normal (sent/received) transactions.

Transaction not yet final, waiting for date

OpenUntilBlock 

Transaction not yet final, waiting for block.

Offline 

Not sent to any other nodes.

Unconfirmed 

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

MaturesWarning 

Transaction will likely not mature because no nodes have confirmed.

NotAccepted 

Mined but not accepted.

Definition at line 27 of file transactionrecord.h.

Constructor & Destructor Documentation

TransactionStatus::TransactionStatus ( )
inline

Definition at line 22 of file transactionrecord.h.

Member Data Documentation

bool TransactionStatus::countsForBalance

Transaction counts towards available balance.

Definition at line 44 of file transactionrecord.h.

int TransactionStatus::cur_num_blocks

Current number of blocks (to know whether cached status is still valid)

Definition at line 63 of file transactionrecord.h.

qint64 TransactionStatus::depth

Definition at line 56 of file transactionrecord.h.

int TransactionStatus::matures_in

Definition at line 50 of file transactionrecord.h.

bool TransactionStatus::needsUpdate

Definition at line 65 of file transactionrecord.h.

qint64 TransactionStatus::open_for

Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined before finalization.

Definition at line 57 of file transactionrecord.h.

std::string TransactionStatus::sortKey

Sorting key based on status.

Definition at line 46 of file transactionrecord.h.

Status TransactionStatus::status

Definition at line 55 of file transactionrecord.h.


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