Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Public Attributes | Static Private Attributes | 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 (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
 
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 201 of file wallet.h.

Constructor & Destructor Documentation

CMerkleTx::CMerkleTx ( )
inline

Definition at line 218 of file wallet.h.

CMerkleTx::CMerkleTx ( CTransactionRef  arg)
inlineexplicit

Definition at line 224 of file wallet.h.

Member Function Documentation

int CMerkleTx::GetBlocksToMaturity ( ) const

Definition at line 4172 of file wallet.cpp.

Here is the caller graph for this function:

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 4153 of file wallet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int CMerkleTx::GetDepthInMainChain ( ) const
inline

Definition at line 261 of file wallet.h.

Here is the call graph for this function:

Here is the caller graph for this function:

const uint256& CMerkleTx::GetHash ( ) const
inline

Definition at line 268 of file wallet.h.

Here is the caller graph for this function:

bool CMerkleTx::hashUnset ( ) const
inline

Definition at line 264 of file wallet.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void CMerkleTx::Init ( )
inline

Definition at line 230 of file wallet.h.

bool CMerkleTx::isAbandoned ( ) const
inline

Definition at line 265 of file wallet.h.

Here is the caller graph for this function:

bool CMerkleTx::IsCoinBase ( ) const
inline

Definition at line 269 of file wallet.h.

Here is the caller graph for this function:

bool CMerkleTx::IsInMainChain ( ) const
inline

Definition at line 262 of file wallet.h.

Here is the caller graph for this function:

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

Definition at line 244 of file wallet.h.

void CMerkleTx::setAbandoned ( )
inline

Definition at line 266 of file wallet.h.

void CMerkleTx::SetMerkleBranch ( const CBlockIndex pIndex,
int  posInBlock 
)

Definition at line 4144 of file wallet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CMerkleTx::SetTx ( CTransactionRef  arg)
inline

Definition at line 236 of file wallet.h.

Here is the caller graph for this function:

Member Data Documentation

const uint256 CMerkleTx::ABANDON_HASH
staticprivate

Constant used in hashBlock to indicate tx has been abandoned.

Definition at line 205 of file wallet.h.

CMerkleTx::ADD_SERIALIZE_METHODS

Definition at line 241 of file wallet.h.

uint256 CMerkleTx::hashBlock

Definition at line 209 of file wallet.h.

int CMerkleTx::nIndex

Definition at line 216 of file wallet.h.

CTransactionRef CMerkleTx::tx

Definition at line 208 of file wallet.h.


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