PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Public Attributes | Private Member Functions | List of all members
CMerkleTx Class Reference

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

#include <wallet.h>

Inheritance diagram for CMerkleTx:
[legend]
Collaboration diagram for CMerkleTx:
[legend]

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
 Return depth of transaction in blockchain: -1 : not in blockchain, and not in memory pool (conflicted transaction) 0 : in memory pool, waiting to be included in a block >=1 : this many blocks deep in the main chain. More...
 
int GetDepthInMainChain (bool enableIX=true) const
 
bool IsInMainChain () const
 
bool IsInMainChainImmature () const
 
int GetBlocksToMaturity () const
 
bool AcceptToMemoryPool (bool fLimitFree=true, bool fRejectInsaneFee=true, bool ignoreFees=false)
 
int GetTransactionLockSignatures () const
 
bool IsTransactionLockTimedOut () const
 
- Public Member Functions inherited from CTransaction
 CTransaction ()
 Construct a CTransaction that qualifies as IsNull() More...
 
 CTransaction (const CMutableTransaction &tx)
 Convert a CMutableTransaction into a CTransaction. More...
 
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
 
bool UsesUTXO (const COutPoint out)
 
std::list< COutPointGetOutPoints () const
 
bool IsCoinBase () const
 
bool IsCoinAudit () const
 
bool IsCoinStake () const
 
std::string ToString () const
 

Public Attributes

uint256 hashBlock
 
int nIndex
 
 ADD_SERIALIZE_METHODS
 
- Public Attributes inherited from CTransaction
const int32_t nVersion
 
std::vector< CTxInvin
 
std::vector< CTxOutvout
 
const uint32_t nLockTime
 
CKey txPrivM
 
char hasPaymentID
 
uint64_t paymentID
 
uint32_t txType
 
std::vector< unsigned char > bulletproofs
 
CAmount nTxFee
 
uint256 c
 
std::vector< std::vector< uint256 > > S
 
CKeyImage ntxFeeKeyImage
 
 ADD_SERIALIZE_METHODS
 

Private Member Functions

int GetDepthInMainChainINTERNAL (const CBlockIndex *&pindexRet) const
 

Additional Inherited Members

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

Detailed Description

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

Definition at line 731 of file wallet.h.

Constructor & Destructor Documentation

◆ CMerkleTx() [1/2]

CMerkleTx::CMerkleTx ( )
inline

Definition at line 740 of file wallet.h.

Here is the call graph for this function:

◆ CMerkleTx() [2/2]

CMerkleTx::CMerkleTx ( const CTransaction txIn)
inline

Definition at line 745 of file wallet.h.

Here is the call graph for this function:

Member Function Documentation

◆ AcceptToMemoryPool()

bool CMerkleTx::AcceptToMemoryPool ( bool  fLimitFree = true,
bool  fRejectInsaneFee = true,
bool  ignoreFees = false 
)

Definition at line 6045 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBlocksToMaturity()

int CMerkleTx::GetBlocksToMaturity ( ) const

Definition at line 6025 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDepthInMainChain() [1/2]

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

Definition at line 6000 of file wallet.cpp.

Here is the call graph for this function:

◆ GetDepthInMainChain() [2/2]

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

Return depth of transaction in blockchain: -1 : not in blockchain, and not in memory pool (conflicted transaction) 0 : in memory pool, waiting to be included in a block >=1 : this many blocks deep in the main chain.

Definition at line 6006 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDepthInMainChainINTERNAL()

int CMerkleTx::GetDepthInMainChainINTERNAL ( const CBlockIndex *&  pindexRet) const
private

Definition at line 5982 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTransactionLockSignatures()

int CMerkleTx::GetTransactionLockSignatures ( ) const

Definition at line 6054 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Init()

void CMerkleTx::Init ( )
inline

Definition at line 750 of file wallet.h.

Here is the caller graph for this function:

◆ IsInMainChain()

bool CMerkleTx::IsInMainChain ( ) const

Definition at line 6033 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsInMainChainImmature()

bool CMerkleTx::IsInMainChainImmature ( ) const

Definition at line 6038 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsTransactionLockTimedOut()

bool CMerkleTx::IsTransactionLockTimedOut ( ) const

Definition at line 6068 of file wallet.cpp.

Here is the call graph for this function:

◆ SerializationOp()

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

Definition at line 759 of file wallet.h.

◆ SetMerkleBranch()

int CMerkleTx::SetMerkleBranch ( const CBlock block)

Definition at line 5953 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CMerkleTx::ADD_SERIALIZE_METHODS

Definition at line 756 of file wallet.h.

◆ hashBlock

uint256 CMerkleTx::hashBlock

Definition at line 737 of file wallet.h.

◆ nIndex

int CMerkleTx::nIndex

Definition at line 738 of file wallet.h.


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