Raven Core
3.0.0
P2P Digital Currency
|
RVN END. More...
#include <wallet.h>
Public Member Functions | |
CMerkleTx () | |
CMerkleTx (CTransactionRef arg) | |
operator const CTransaction & () const | |
Helper conversion operator to allow passing CMerkleTx where CTransaction is expected. More... | |
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 | AcceptToMemoryPool (const CAmount &nAbsurdFee, CValidationState &state) |
Pass this transaction to the mempool. More... | |
bool | hashUnset () const |
bool | isAbandoned () const |
void | setAbandoned () |
const uint256 & | GetHash () 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... | |
RVN END.
A transaction with a merkle branch linking it to the block chain.
|
inlineexplicit |
bool CMerkleTx::AcceptToMemoryPool | ( | const CAmount & | nAbsurdFee, |
CValidationState & | state | ||
) |
Pass this transaction to the mempool.
Fails if absolute fee exceeds absurd fee.
Definition at line 4791 of file wallet.cpp.
int CMerkleTx::GetBlocksToMaturity | ( | ) | const |
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 4764 of file wallet.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Helper conversion operator to allow passing CMerkleTx where CTransaction is expected.
TODO: adapt callers and remove this operator.
|
inline |
void CMerkleTx::SetMerkleBranch | ( | const CBlockIndex * | pIndex, |
int | posInBlock | ||
) |
Definition at line 4755 of file wallet.cpp.
|
inline |
|
staticprivate |
CTransactionRef CMerkleTx::tx |