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
 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...
 
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 208 of file wallet.h.

Constructor & Destructor Documentation

CMerkleTx::CMerkleTx ( )
inline

Definition at line 225 of file wallet.h.

CMerkleTx::CMerkleTx ( CTransactionRef  arg)
inlineexplicit

Definition at line 231 of file wallet.h.

Member Function Documentation

int CMerkleTx::GetBlocksToMaturity ( ) const

Definition at line 4403 of file wallet.cpp.

Here is the caller graph for this function:

int CMerkleTx::GetDepthInMainChain ( ) 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 4388 of file wallet.cpp.

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 274 of file wallet.h.

Here is the caller graph for this function:

bool CMerkleTx::hashUnset ( ) const
inline

Definition at line 270 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 237 of file wallet.h.

bool CMerkleTx::isAbandoned ( ) const
inline

Definition at line 271 of file wallet.h.

Here is the caller graph for this function:

bool CMerkleTx::IsCoinBase ( ) const
inline

Definition at line 275 of file wallet.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CMerkleTx::IsInMainChain ( ) const
inline

Definition at line 268 of file wallet.h.

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

Definition at line 251 of file wallet.h.

void CMerkleTx::setAbandoned ( )
inline

Definition at line 272 of file wallet.h.

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

Definition at line 4379 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 243 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 212 of file wallet.h.

CMerkleTx::ADD_SERIALIZE_METHODS

Definition at line 248 of file wallet.h.

uint256 CMerkleTx::hashBlock

Definition at line 216 of file wallet.h.

int CMerkleTx::nIndex

Definition at line 223 of file wallet.h.

CTransactionRef CMerkleTx::tx

Definition at line 215 of file wallet.h.


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