Bitcoin
|
#include <wallet.h>
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 uint256 &block_hash, int posInBlock) |
int | GetDepthInMainChain (interfaces::Chain::Lock &locked_chain) const |
bool | IsInMainChain (interfaces::Chain::Lock &locked_chain) const |
int | GetBlocksToMaturity (interfaces::Chain::Lock &locked_chain) const |
bool | hashUnset () const |
bool | isAbandoned () const |
void | setAbandoned () |
const uint256 & | GetHash () const |
bool | IsCoinBase () const |
bool | IsImmatureCoinBase (interfaces::Chain::Lock &locked_chain) const |
Public Attributes | |
CTransactionRef | tx |
uint256 | hashBlock |
int | nIndex |
ADD_SERIALIZE_METHODS | |
Static Private Attributes | |
static const uint256 | ABANDON_HASH |
A transaction with a merkle branch linking it to the block chain.
|
inline |
|
inlineexplicit |
int CMerkleTx::GetBlocksToMaturity | ( | interfaces::Chain::Lock & | locked_chain | ) | const |
int CMerkleTx::GetDepthInMainChain | ( | interfaces::Chain::Lock & | locked_chain | ) | 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
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool CMerkleTx::IsImmatureCoinBase | ( | interfaces::Chain::Lock & | locked_chain | ) | const |
|
inline |
|
inline |
|
inline |
void CMerkleTx::SetMerkleBranch | ( | const uint256 & | block_hash, |
int | posInBlock | ||
) |
|
inline |
|
staticprivate |
Constant used in hashBlock to indicate tx has been abandoned
CMerkleTx::ADD_SERIALIZE_METHODS |
uint256 CMerkleTx::hashBlock |
int CMerkleTx::nIndex |
CTransactionRef CMerkleTx::tx |