Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
transactionrecord.cpp
Go to the documentation of this file.
31 QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx)
66 // Received by IP connection (deprecated features), or a multisignature or other non-simple transaction
112 parts.append(TransactionRecord(hash, nTime, TransactionRecord::PrivateSendDenominate, "", -nDebit, nCredit));
113 parts.last().involvesWatchAddress = false; // maybe pass to TransactionRecord as constructor argument
158 fMakeCollateral = (nAmount0 == CPrivateSend::GetMaxCollateralAmount() && !CPrivateSend::IsDenominatedAmount(nAmount1) && nAmount1 >= CPrivateSend::GetCollateralAmount()) ||
159 (nAmount1 == CPrivateSend::GetMaxCollateralAmount() && !CPrivateSend::IsDenominatedAmount(nAmount0) && nAmount0 >= CPrivateSend::GetCollateralAmount()) ||
184 parts.last().involvesWatchAddress = involvesWatchAddress; // maybe pass to TransactionRecord as constructor argument
338 // The IsLockedByInstantSend call is quite expensive, so we only do it when a state change is actually possible.
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
Definition: standard.h:80
Confirmed, but waiting for the recommended number of confirmations.
Definition: transactionrecord.h:35
bool ExtractDestination(const CScript &scriptPubKey, CTxDestination &addressRet)
Parse a standard scriptPubKey for the destination address.
Definition: standard.cpp:158
Transaction not yet final, waiting for block.
Definition: transactionrecord.h:33
static bool IsDenominatedAmount(CAmount nInputAmount)
Definition: privatesend.cpp:469
std::map< CTxDestination, CAddressBookData > mapAddressBook
Definition: wallet.h:906
CAmount GetDebit(const isminefilter &filter) const
filter decides which addresses will count towards the debit
Definition: wallet.cpp:2169
Have 6 or more confirmations (normal tx) or fully mature (mined tx)
Definition: transactionrecord.h:30
void updateStatus(const CWalletTx &wtx, int chainLockHeight)
Update status from core wallet tx.
Definition: transactionrecord.cpp:267
static bool showTransaction(const CWalletTx &wtx)
Decompose CWallet transaction to model transaction records.
Definition: transactionrecord.cpp:21
int getOutputIndex() const
Return the output index of the subtransaction.
Definition: transactionrecord.cpp:383
bool CheckFinalTx(const CTransaction &tx, int flags)
Transaction validation functions.
Definition: validation.cpp:317
TransactionStatus status
Status: can change with block chain update.
Definition: transactionrecord.h:146
static QList< TransactionRecord > decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx)
Definition: transactionrecord.cpp:31
bool IsDenominated(const COutPoint &outpoint) const
Definition: wallet.cpp:1664
QString getTxID() const
Return the unique identifier for this transaction (part)
Definition: transactionrecord.cpp:378
Definition: ismine.h:26
bool countsForBalance
Transaction counts towards available balance.
Definition: transactionrecord.h:44
int cur_num_blocks
Current number of blocks (to know whether cached status is still valid)
Definition: transactionrecord.h:69
Normal (sent/received) transactions.
Definition: transactionrecord.h:32
A transaction with a bunch of additional info that only the owner cares about.
Definition: wallet.h:280
Definition: transactionrecord.h:85
std::string EncodeDestination(const CTxDestination &dest)
Definition: base58.cpp:329
Definition: ismine.h:25
Conflicts with other transaction or mempool.
Definition: transactionrecord.h:36
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
Definition: ismine.h:24
bool involvesWatchAddress
Whether the transaction was sent/received with a watch-only address.
Definition: transactionrecord.h:149
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
Definition: wallet.h:715
static CAmount GetMaxCollateralAmount()
Definition: privatesend.h:461
static bool IsCollateralAmount(CAmount nInputAmount)
Definition: privatesend.cpp:393
bool statusUpdateNeeded(int chainLockHeight) const
Return whether a status update is needed.
Definition: transactionrecord.cpp:371
qint64 open_for
Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined befor...
Definition: transactionrecord.h:63
CChain & chainActive
The currently-connected chain of blocks (protected by cs_main).
Definition: validation.cpp:217
AssertLockHeld(g_cs_orphans)
int GetDepthInMainChain(const CBlockIndex *&pindexRet) const
Return depth of transaction in blockchain: <0 : conflicts with a transaction this deep in the blockch...
Definition: wallet.cpp:5501
isminetype IsMine(const CKeyStore &keystore, const CTxDestination &dest)
Definition: ismine.cpp:28
static const int RecommendedNumConfirmations
Number of confirmation recommended for accepting a transaction.
Definition: transactionrecord.h:101