A transaction with a bunch of additional info that only the owner cares about.
More...
|
| CWalletTx () |
|
| CWalletTx (const CWallet *pwalletIn, CTransactionRef arg) |
|
void | Init (const CWallet *pwalletIn) |
|
template<typename Stream , typename Operation > |
void | SerializationOp (Stream &s, Operation ser_action) |
|
void | MarkDirty () |
| make sure balances are recalculated More...
|
|
void | BindWallet (CWallet *pwalletIn) |
|
CAmount | GetDebit (const isminefilter &filter) const |
| filter decides which addresses will count towards the debit More...
|
|
CAmount | GetCredit (const isminefilter &filter) const |
|
CAmount | GetImmatureCredit (bool fUseCache=true) const |
|
CAmount | GetAvailableCredit (bool fUseCache=true) const |
|
CAmount | GetImmatureWatchOnlyCredit (const bool &fUseCache=true) const |
|
CAmount | GetAvailableWatchOnlyCredit (const bool &fUseCache=true) const |
|
CAmount | GetChange () const |
|
void | GetAmounts (std::list< COutputEntry > &listReceived, std::list< COutputEntry > &listSent, CAmount &nFee, std::string &strSentAccount, const isminefilter &filter) const |
|
bool | IsFromMe (const isminefilter &filter) const |
|
bool | IsEquivalentTo (const CWalletTx &tx) const |
|
bool | InMempool () const |
|
bool | IsTrusted () const |
|
int64_t | GetTxTime () const |
|
int | GetRequestCount () const |
|
bool | RelayWalletTransaction (CConnman *connman) |
|
std::set< uint256 > | GetConflicts () const |
|
| 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 |
|
int | GetHeight () 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 |
|
bool | IsCoinStake () const |
|
A transaction with a bunch of additional info that only the owner cares about.
It includes any unrecorded transactions needed to link it back to the block chain.
Definition at line 287 of file wallet.h.
Key/value map with information about the transaction.
The following keys can be read and written through the map and are serialized in the wallet database:
"comment", "to" - comment strings provided to sendtoaddress,
sendfrom, sendmany wallet RPCs
"replaces_txid" - txid (as HexStr) of transaction replaced by
bumpfee on transaction created by bumpfee
"replaced_by_txid" - txid (as HexStr) of transaction created by
bumpfee on transaction replaced by bumpfee
"from", "message" - obsolete fields that could be set in UI prior to
2011 (removed in commit 4d9b223)
The following keys are serialized in the wallet database, but shouldn't be read or written through the map (they will be temporarily added and removed from the map during serialization):
"fromaccount" - serialized strFromAccount value
"n" - serialized nOrderPos value
"timesmart" - serialized nTimeSmart value
"spent" - serialized vfSpent value that existed prior to
2014 (removed in commit 93a18a3)
Definition at line 318 of file wallet.h.
unsigned int CWalletTx::nTimeSmart |
Stable timestamp that never changes, and reflects the order a transaction was added to the wallet.
Timestamp is based on the block time for a transaction added as part of a block, or else the time when the transaction was received if it wasn't part of a block, with the timestamp adjusted in both cases so timestamp order matches the order transactions were added to the wallet. More details can be found in CWallet::ComputeTimeSmart().
Definition at line 331 of file wallet.h.