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>

+ Inheritance diagram for CMerkleTx:
+ Collaboration diagram for CMerkleTx:

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 uint256GetHash () 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.

Definition at line 203 of file wallet.h.

Constructor & Destructor Documentation

◆ CMerkleTx() [1/2]

CMerkleTx::CMerkleTx ( )
inline

Definition at line 220 of file wallet.h.

References Init(), MakeTransactionRef(), and SetTx().

◆ CMerkleTx() [2/2]

CMerkleTx::CMerkleTx ( CTransactionRef  arg)
inlineexplicit

Definition at line 226 of file wallet.h.

References Init(), and SetTx().

Member Function Documentation

◆ GetBlocksToMaturity()

◆ GetDepthInMainChain() [1/2]

int CMerkleTx::GetDepthInMainChain ( const CBlockIndex *&  pindexRet) const

◆ GetDepthInMainChain() [2/2]

◆ GetHash()

◆ hashUnset()

bool CMerkleTx::hashUnset ( ) const
inline

◆ Init()

void CMerkleTx::Init ( )
inline

Definition at line 232 of file wallet.h.

References hashBlock, and nIndex.

Referenced by CMerkleTx(), CWalletTx::CWalletTx(), and CWalletTx::SerializationOp().

◆ isAbandoned()

◆ IsChainLocked()

◆ IsCoinBase()

◆ IsInMainChain()

bool CMerkleTx::IsInMainChain ( ) const
inline

◆ IsLockedByInstantSend()

◆ SerializationOp()

template<typename Stream , typename Operation >
void CMerkleTx::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 246 of file wallet.h.

References hashBlock, nIndex, READWRITE, and tx.

◆ setAbandoned()

void CMerkleTx::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()

void CMerkleTx::SetTx ( CTransactionRef  arg)
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

const uint256 CMerkleTx::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

CMerkleTx::ADD_SERIALIZE_METHODS

Definition at line 243 of file wallet.h.

◆ hashBlock

◆ nIndex

◆ 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:
Released under the MIT license