Dash Core  0.12.2.1
P2P Digital Currency
CMerkleTx Class Reference

#include <wallet.h>

+ Inheritance diagram for CMerkleTx:

Public Member Functions

 CMerkleTx ()
 
 CMerkleTx (const CTransaction &txIn)
 
void Init ()
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
int SetMerkleBranch (const CBlock &block)
 
int GetDepthInMainChain (const CBlockIndex *&pindexRet, bool enableIX=true) const
 
int GetDepthInMainChain (bool enableIX=true) const
 
bool IsInMainChain () const
 
int GetBlocksToMaturity () const
 
bool AcceptToMemoryPool (bool fLimitFree=true, bool fRejectAbsurdFee=true)
 
bool hashUnset () const
 
bool isAbandoned () const
 
void setAbandoned ()
 
- Public Member Functions inherited from CTransaction
 CTransaction ()
 
 CTransaction (const CMutableTransaction &tx)
 
CTransactionoperator= (const CTransaction &tx)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
bool IsNull () const
 
const uint256GetHash () const
 
CAmount GetValueOut () const
 
double ComputePriority (double dPriorityInputs, unsigned int nTxSize=0) const
 
unsigned int CalculateModifiedSize (unsigned int nTxSize=0) const
 
unsigned int GetTotalSize () const
 
bool IsCoinBase () const
 
std::string ToString () const
 

Public Attributes

uint256 hashBlock
 
int nIndex
 
 ADD_SERIALIZE_METHODS
 
- Public Attributes inherited from CTransaction
const int32_t nVersion
 
const std::vector< CTxInvin
 
const std::vector< CTxOutvout
 
const uint32_t nLockTime
 
 ADD_SERIALIZE_METHODS
 

Static Private Attributes

static const uint256 ABANDON_HASH
 

Additional Inherited Members

- Static Public Attributes inherited from CTransaction
static const int32_t CURRENT_VERSION =1
 
static const int32_t MAX_STANDARD_VERSION =2
 

Detailed Description

A transaction with a merkle branch linking it to the block chain.

Definition at line 209 of file wallet.h.

Constructor & Destructor Documentation

◆ CMerkleTx() [1/2]

CMerkleTx::CMerkleTx ( )
inline

Definition at line 225 of file wallet.h.

◆ CMerkleTx() [2/2]

CMerkleTx::CMerkleTx ( const CTransaction txIn)
inline

Definition at line 230 of file wallet.h.

Member Function Documentation

◆ AcceptToMemoryPool()

bool CMerkleTx::AcceptToMemoryPool ( bool  fLimitFree = true,
bool  fRejectAbsurdFee = true 
)

Definition at line 4457 of file wallet.cpp.

Referenced by CWallet::CommitTransaction(), and CWallet::ReacceptWalletTransactions().

◆ GetBlocksToMaturity()

◆ GetDepthInMainChain() [1/2]

int CMerkleTx::GetDepthInMainChain ( const CBlockIndex *&  pindexRet,
bool  enableIX = true 
) const

◆ GetDepthInMainChain() [2/2]

int CMerkleTx::GetDepthInMainChain ( bool  enableIX = true) const
inline

Definition at line 262 of file wallet.h.

Referenced by GetDepthInMainChain().

◆ hashUnset()

bool CMerkleTx::hashUnset ( ) const
inline

Definition at line 266 of file wallet.h.

Referenced by CWallet::AddToWallet().

◆ Init()

void CMerkleTx::Init ( )
inline

Definition at line 235 of file wallet.h.

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

◆ isAbandoned()

◆ IsInMainChain()

bool CMerkleTx::IsInMainChain ( ) const
inline

◆ SerializationOp()

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

Definition at line 244 of file wallet.h.

◆ setAbandoned()

void CMerkleTx::setAbandoned ( )
inline

Definition at line 268 of file wallet.h.

◆ SetMerkleBranch()

int CMerkleTx::SetMerkleBranch ( const CBlock block)

Definition at line 4386 of file wallet.cpp.

Referenced by CWallet::AddToWalletIfInvolvingMe().

Member Data Documentation

◆ ABANDON_HASH

const uint256 CMerkleTx::ABANDON_HASH
staticprivate

Constant used in hashBlock to indicate tx has been abandoned

Definition at line 213 of file wallet.h.

Referenced by hashUnset(), isAbandoned(), and setAbandoned().

◆ ADD_SERIALIZE_METHODS

CMerkleTx::ADD_SERIALIZE_METHODS

Definition at line 241 of file wallet.h.

◆ hashBlock

◆ nIndex

int CMerkleTx::nIndex

Definition at line 223 of file wallet.h.

Referenced by CWallet::AddToWallet(), Init(), SerializationOp(), and WalletTxToJSON().


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