Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
A transaction with a merkle branch linking it to the block chain. More...
#include <wallet.h>
Public Member Functions | |
CMerkleTx () | |
CMerkleTx (CTransactionRef arg) | |
void | Init () |
void | SetTx (CTransactionRef arg) |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
void | SetMerkleBranch (const CBlockIndex *pIndex, int posInBlock) |
int | GetDepthInMainChain (const CBlockIndex *&pindexRet) const |
Return depth of transaction in blockchain: <0 : conflicts with a transaction this deep in the blockchain 0 : in memory pool, waiting to be included in a block >=1 : this many blocks deep in the main chain. More... | |
int | GetDepthInMainChain () const |
bool | IsInMainChain () const |
bool | IsLockedByInstantSend () const |
bool | IsChainLocked () const |
int | GetBlocksToMaturity () const |
bool | hashUnset () const |
bool | isAbandoned () const |
void | setAbandoned () |
const uint256 & | GetHash () const |
bool | IsCoinBase () const |
Public Attributes | |
CTransactionRef | tx |
uint256 | hashBlock |
int | nIndex |
ADD_SERIALIZE_METHODS | |
Static Private Attributes | |
static const uint256 | ABANDON_HASH |
Constant used in hashBlock to indicate tx has been abandoned. More... | |
Detailed Description
A transaction with a merkle branch linking it to the block chain.
Constructor & Destructor Documentation
◆ CMerkleTx() [1/2]
|
inline |
Definition at line 220 of file wallet.h.
References Init(), MakeTransactionRef(), and SetTx().
◆ CMerkleTx() [2/2]
|
inlineexplicit |
Member Function Documentation
◆ GetBlocksToMaturity()
int CMerkleTx::GetBlocksToMaturity | ( | ) | const |
Definition at line 5546 of file wallet.cpp.
References COINBASE_MATURITY, GetDepthInMainChain(), and IsCoinBase().
Referenced by CWallet::GetAddressBalances(), CWalletTx::GetAvailableCredit(), CWalletTx::GetAvailableWatchOnlyCredit(), CWalletTx::GetCredit(), CWalletTx::GetDenominatedCredit(), CWalletTx::GetImmatureCredit(), CWalletTx::GetImmatureWatchOnlyCredit(), CWallet::GetLegacyBalance(), listaccounts(), ListTransactions(), CWallet::SelectCoinsGroupedByAddresses(), TransactionDesc::toHTML(), and TransactionRecord::updateStatus().
◆ GetDepthInMainChain() [1/2]
int CMerkleTx::GetDepthInMainChain | ( | const CBlockIndex *& | pindexRet | ) | const |
Return depth of transaction in blockchain: <0 : conflicts with a transaction this deep in the blockchain 0 : in memory pool, waiting to be included in a block >=1 : this many blocks deep in the main chain.
Definition at line 5501 of file wallet.cpp.
References AssertLockHeld(), chainActive, CChain::Contains(), cs_main, CTxMemPool::exists(), GetHash(), hashBlock, hashUnset(), CChain::Height(), mapBlockIndex, mempool, CBlockIndex::nHeight, and nIndex.
Referenced by CWallet::AbandonTransaction(), TransactionDesc::FormatTxStatus(), CWallet::GetAddressBalances(), CWallet::GetLegacyBalance(), getreceivedbyaccount(), getreceivedbyaddress(), listaccounts(), ListReceived(), listsinceblock(), ListTransactions(), CWallet::MarkConflicted(), CWallet::ReacceptWalletTransactions(), CWallet::TransactionCanBeAbandoned(), TransactionRecord::updateStatus(), and WalletTxToJSON().
◆ GetDepthInMainChain() [2/2]
|
inline |
Definition at line 263 of file wallet.h.
References GetDepthInMainChain().
Referenced by CWalletTx::GetAnonymizedCredit(), GetBlocksToMaturity(), CWalletTx::GetDenominatedCredit(), GetDepthInMainChain(), IsInMainChain(), CWalletTx::IsTrusted(), and CWalletTx::RelayWalletTransaction().
◆ GetHash()
|
inline |
Definition at line 272 of file wallet.h.
References tx.
Referenced by CWallet::AddToWallet(), AddTx(), ListCoinsTestingSetup::AddTx(), BOOST_AUTO_TEST_CASE(), CInputCoin::CInputCoin(), CTransactionBuilder::Commit(), CWallet::CommitTransaction(), CWallet::ComputeTimeSmart(), TransactionRecord::decomposeTransaction(), CWalletTx::GetAmounts(), CWalletTx::GetAnonymizedCredit(), CWalletTx::GetAvailableCredit(), CWalletTx::GetAvailableWatchOnlyCredit(), CreateTransactionTestSetup::GetCoins(), CWalletTx::GetConflicts(), CWalletTx::GetDenominatedCredit(), GetDepthInMainChain(), CWallet::GetOutpointAndKeysFromOutput(), IsLockedByInstantSend(), ListReceived(), CWallet::LoadToWallet(), WalletTxHasher::operator()(), CWallet::ReacceptWalletTransactions(), CWalletTx::RelayWalletTransaction(), CWallet::ResendWalletTransactionsBefore(), CWallet::SelectCoinsMinConf(), sendfrom(), sendmany(), sendtoaddress(), COutput::ToString(), CoinControlDialog::updateView(), WalletTxToJSON(), and WalletBatch::WriteTx().
◆ hashUnset()
|
inline |
Definition at line 268 of file wallet.h.
References ABANDON_HASH, hashBlock, and base_blob< BITS >::IsNull().
Referenced by CWallet::AddToWallet(), CWallet::ComputeTimeSmart(), GetDepthInMainChain(), and CWallet::LoadToWallet().
◆ Init()
|
inline |
Definition at line 232 of file wallet.h.
References hashBlock, and nIndex.
Referenced by CMerkleTx(), CWalletTx::CWalletTx(), and CWalletTx::SerializationOp().
◆ isAbandoned()
|
inline |
Definition at line 269 of file wallet.h.
References ABANDON_HASH, and hashBlock.
Referenced by CWallet::AddToWallet(), TransactionDesc::FormatTxStatus(), ListTransactions(), CWallet::ReacceptWalletTransactions(), CWalletTx::RelayWalletTransaction(), CWallet::TransactionCanBeAbandoned(), and TransactionRecord::updateStatus().
◆ IsChainLocked()
bool CMerkleTx::IsChainLocked | ( | ) | const |
Definition at line 5536 of file wallet.cpp.
References AssertLockHeld(), llmq::chainLocksHandler, cs_main, llmq::CChainLocksHandler::HasChainLock(), hashBlock, and mapBlockIndex.
Referenced by TransactionDesc::FormatTxStatus(), and TransactionRecord::updateStatus().
◆ IsCoinBase()
|
inline |
Definition at line 273 of file wallet.h.
References tx.
Referenced by TransactionRecord::decomposeTransaction(), CWallet::GetAddressBalances(), CWalletTx::GetAnonymizedCredit(), CWalletTx::GetAvailableCredit(), CWalletTx::GetAvailableWatchOnlyCredit(), GetBlocksToMaturity(), CWalletTx::GetCredit(), CWalletTx::GetDenominatedCredit(), CWalletTx::GetImmatureCredit(), CWalletTx::GetImmatureWatchOnlyCredit(), getreceivedbyaccount(), getreceivedbyaddress(), ListReceived(), ListTransactions(), CWallet::ReacceptWalletTransactions(), CWalletTx::RelayWalletTransaction(), CWallet::SelectCoinsGroupedByAddresses(), TransactionDesc::toHTML(), TransactionRecord::updateStatus(), and WalletTxToJSON().
◆ IsInMainChain()
|
inline |
Definition at line 264 of file wallet.h.
References GetDepthInMainChain().
Referenced by CWalletTx::GetImmatureCredit(), CWalletTx::GetImmatureWatchOnlyCredit(), TransactionDesc::toHTML(), and TransactionRecord::updateStatus().
◆ IsLockedByInstantSend()
bool CMerkleTx::IsLockedByInstantSend | ( | ) | const |
Definition at line 5531 of file wallet.cpp.
References GetHash(), llmq::CInstantSendManager::IsLocked(), and llmq::quorumInstantSendManager.
Referenced by TransactionDesc::FormatTxStatus(), CWallet::GetAddressBalances(), CWallet::GetLegacyBalance(), getreceivedbyaccount(), getreceivedbyaddress(), CWalletTx::IsTrusted(), listaccounts(), ListReceived(), ListTransactions(), CWallet::ReacceptWalletTransactions(), CWallet::SelectCoinsMinConf(), and TransactionRecord::updateStatus().
◆ SerializationOp()
|
inline |
◆ setAbandoned()
|
inline |
Definition at line 270 of file wallet.h.
References ABANDON_HASH, and hashBlock.
◆ SetMerkleBranch()
void CMerkleTx::SetMerkleBranch | ( | const CBlockIndex * | pIndex, |
int | posInBlock | ||
) |
Definition at line 5492 of file wallet.cpp.
References CBlockIndex::GetBlockHash(), hashBlock, and nIndex.
Referenced by CWallet::AddToWalletIfInvolvingMe(), and AddTx().
◆ SetTx()
|
inline |
Definition at line 238 of file wallet.h.
References tx.
Referenced by BOOST_AUTO_TEST_CASE(), CMerkleTx(), and CWallet::CreateTransaction().
Member Data Documentation
◆ ABANDON_HASH
|
staticprivate |
Constant used in hashBlock to indicate tx has been abandoned.
Definition at line 207 of file wallet.h.
Referenced by hashUnset(), isAbandoned(), and setAbandoned().
◆ ADD_SERIALIZE_METHODS
◆ hashBlock
uint256 CMerkleTx::hashBlock |
Definition at line 211 of file wallet.h.
Referenced by CWallet::AddToWallet(), BOOST_FIXTURE_TEST_CASE(), CWallet::ComputeTimeSmart(), GetDepthInMainChain(), CWallet::GetKeyBirthTimes(), hashUnset(), importprunedfunds(), Init(), isAbandoned(), IsChainLocked(), CWallet::LoadToWallet(), SerializationOp(), setAbandoned(), SetMerkleBranch(), TransactionRecord::updateStatus(), and WalletTxToJSON().
◆ nIndex
int CMerkleTx::nIndex |
Definition at line 218 of file wallet.h.
Referenced by CWallet::AddToWallet(), BOOST_FIXTURE_TEST_CASE(), GetDepthInMainChain(), importprunedfunds(), Init(), CWallet::LoadToWallet(), SerializationOp(), SetMerkleBranch(), and WalletTxToJSON().
◆ tx
CTransactionRef CMerkleTx::tx |
Definition at line 210 of file wallet.h.
Referenced by CWalletTx::AcceptToMemoryPool(), CWallet::AddToWallet(), ListCoinsTestingSetup::AddTx(), BOOST_AUTO_TEST_CASE(), CInputCoin::CInputCoin(), CTransactionBuilder::Commit(), CWallet::CommitTransaction(), CreateTransactionTestSetup::CreateTransaction(), CWallet::CreateTransaction(), TransactionRecord::decomposeTransaction(), TransactionDesc::FormatTxStatus(), CWallet::FundTransaction(), CWallet::GetAddressBalances(), CWallet::GetAddressGroupings(), CWalletTx::GetAmounts(), CWalletTx::GetAnonymizedCredit(), CWalletTx::GetAvailableCredit(), CWalletTx::GetAvailableWatchOnlyCredit(), CWalletTx::GetChange(), CreateTransactionTestSetup::GetCoins(), CWallet::GetConflicts(), CWalletTx::GetCredit(), CWalletTx::GetDebit(), CWallet::GetDebit(), CWalletTx::GetDenominatedCredit(), GetHash(), CWalletTx::GetImmatureCredit(), CWalletTx::GetImmatureWatchOnlyCredit(), CWallet::GetKeyBirthTimes(), CWallet::GetLegacyBalance(), CWallet::GetOutpointAndKeysFromOutput(), CWallet::GetRealOutpointPrivateSendRounds(), getreceivedbyaccount(), getreceivedbyaddress(), gettransaction(), WalletModelTransaction::getTransactionSize(), importprunedfunds(), CWallet::IsAllFromMe(), IsCoinBase(), CWalletTx::IsEquivalentTo(), CWallet::IsMine(), CWalletTx::IsTrusted(), less_then_denom(), ListReceived(), CWallet::LoadToWallet(), lockunspent(), WalletModel::prepareTransaction(), COutput::Priority(), WalletModelTransaction::reassignAmounts(), CWalletTx::RelayWalletTransaction(), CWallet::SelectCoins(), CWallet::SelectCoinsGroupedByAddresses(), CWallet::SelectCoinsMinConf(), SendCoinsDialog::send(), WalletModel::sendCoins(), SerializationOp(), SetTx(), TransactionDesc::toHTML(), COutput::ToString(), TransactionRecord::updateStatus(), and CoinControlDialog::updateView().
The documentation for this class was generated from the following files:
- src/wallet/wallet.h
- src/wallet/wallet.cpp