![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <wallet.h>
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 |
int | GetDepthInMainChain (bool enableIX=true) const |
bool | IsInMainChain () const |
int | GetBlocksToMaturity () const |
bool | AcceptToMemoryPool (bool fLimitFree=true, bool fRejectAbsurdFee=true) |
bool | hashUnset () const |
bool | isAbandoned () const |
void | setAbandoned () |
![]() | |
CTransaction () | |
CTransaction (const CMutableTransaction &tx) | |
CTransaction & | operator= (const CTransaction &tx) |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion) |
bool | IsNull () const |
const uint256 & | GetHash () const |
CAmount | GetValueOut () const |
double | ComputePriority (double dPriorityInputs, unsigned int nTxSize=0) const |
unsigned int | CalculateModifiedSize (unsigned int nTxSize=0) const |
unsigned int | GetTotalSize () const |
bool | IsCoinBase () const |
std::string | ToString () const |
Public Attributes | |
uint256 | hashBlock |
int | nIndex |
ADD_SERIALIZE_METHODS | |
![]() | |
const int32_t | nVersion |
const std::vector< CTxIn > | vin |
const std::vector< CTxOut > | vout |
const uint32_t | nLockTime |
ADD_SERIALIZE_METHODS | |
Static Private Attributes | |
static const uint256 | ABANDON_HASH |
Additional Inherited Members | |
![]() | |
static const int32_t | CURRENT_VERSION =1 |
static const int32_t | MAX_STANDARD_VERSION =2 |
A transaction with a merkle branch linking it to the block chain.
|
inline |
bool CMerkleTx::AcceptToMemoryPool | ( | bool | fLimitFree = true , |
bool | fRejectAbsurdFee = true |
||
) |
Definition at line 4457 of file wallet.cpp.
Referenced by CWallet::CommitTransaction(), and CWallet::ReacceptWalletTransactions().
int CMerkleTx::GetBlocksToMaturity | ( | ) | const |
Definition at line 4449 of file wallet.cpp.
Referenced by CWallet::AvailableCoins(), GetAccountBalance(), CWallet::GetAddressBalances(), getbalance(), listaccounts(), ListTransactions(), CWallet::SelectCoinsGrouppedByAddresses(), TransactionDesc::toHTML(), and TransactionRecord::updateStatus().
int CMerkleTx::GetDepthInMainChain | ( | const CBlockIndex *& | pindexRet, |
bool | enableIX = true |
||
) | 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 4416 of file wallet.cpp.
Referenced by CWallet::AbandonTransaction(), CWallet::AvailableCoins(), CWallet::CountInputsWithAmount(), TransactionDesc::FormatTxStatus(), GetAccountBalance(), CWallet::GetAddressBalances(), getbalance(), getreceivedbyaccount(), getreceivedbyaddress(), CWallet::GetUnconfirmedBalance(), CWallet::GetUnconfirmedWatchOnlyBalance(), IsInMainChain(), listaccounts(), ListReceived(), listsinceblock(), ListTransactions(), CWallet::MarkConflicted(), CWallet::ReacceptWalletTransactions(), WalletModel::transactionCanBeAbandoned(), TransactionRecord::updateStatus(), and WalletTxToJSON().
|
inline |
Definition at line 262 of file wallet.h.
Referenced by GetDepthInMainChain().
|
inline |
Definition at line 266 of file wallet.h.
Referenced by CWallet::AddToWallet().
|
inline |
Definition at line 235 of file wallet.h.
Referenced by CMerkleTx(), CWalletTx::CWalletTx(), and CWalletTx::SerializationOp().
|
inline |
Definition at line 267 of file wallet.h.
Referenced by CWallet::AddToWallet(), TransactionDesc::FormatTxStatus(), ListTransactions(), CWallet::ReacceptWalletTransactions(), WalletModel::transactionCanBeAbandoned(), and TransactionRecord::updateStatus().
|
inline |
Definition at line 263 of file wallet.h.
Referenced by TransactionRecord::showTransaction(), TransactionDesc::toHTML(), and TransactionRecord::updateStatus().
|
inline |
int CMerkleTx::SetMerkleBranch | ( | const CBlock & | block | ) |
Definition at line 4386 of file wallet.cpp.
Referenced by CWallet::AddToWalletIfInvolvingMe().
|
staticprivate |
Constant used in hashBlock to indicate tx has been abandoned
Definition at line 213 of file wallet.h.
Referenced by hashUnset(), isAbandoned(), and setAbandoned().
uint256 CMerkleTx::hashBlock |
Definition at line 216 of file wallet.h.
Referenced by CWallet::AddToWallet(), CWallet::GetKeyBirthTimes(), hashUnset(), Init(), isAbandoned(), setAbandoned(), TransactionRecord::updateStatus(), and WalletTxToJSON().
int CMerkleTx::nIndex |
Definition at line 223 of file wallet.h.
Referenced by CWallet::AddToWallet(), Init(), SerializationOp(), and WalletTxToJSON().