A transaction with a bunch of additional info that only the owner cares about.
More...
|
| CWalletTx (const CWallet *pwalletIn, CTransactionRef arg) |
|
void | Init (const CWallet *pwalletIn) |
|
template<typename Stream > |
void | Serialize (Stream &s) const |
|
template<typename Stream > |
void | Unserialize (Stream &s) |
|
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 EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
|
CAmount | GetImmatureCredit (bool fUseCache=true) const EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
|
CAmount | GetAvailableCredit (bool fUseCache=true, const isminefilter &filter=ISMINE_SPENDABLE) const NO_THREAD_SAFETY_ANALYSIS |
|
CAmount | GetImmatureWatchOnlyCredit (const bool fUseCache=true) const EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
|
CAmount | GetChange () const |
|
int | GetSpendSize (unsigned int out, bool use_max_sig=false) const |
|
void | GetAmounts (std::list< COutputEntry > &listReceived, std::list< COutputEntry > &listSent, CAmount &nFee, const isminefilter &filter) const |
|
bool | IsFromMe (const isminefilter &filter) const |
|
bool | IsEquivalentTo (const CWalletTx &tx) const |
|
bool | InMempool () const |
|
bool | IsTrusted () const EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
|
int64_t | GetTxTime () const |
|
bool | RelayWalletTransaction (CConnman *connman) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
|
bool | AcceptToMemoryPool (const CAmount &nAbsurdFee, CValidationState &state) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| Pass this transaction to the mempool. More...
|
|
std::set< uint256 > | GetConflicts () const NO_THREAD_SAFETY_ANALYSIS |
|
| 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 EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| 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 EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
|
int | GetBlocksToMaturity () const EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
|
bool | hashUnset () const |
|
bool | isAbandoned () const |
|
void | setAbandoned () |
|
const uint256 & | GetHash () const |
|
bool | IsCoinBase () const |
|
bool | IsImmatureCoinBase () const EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
|
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 295 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,
and 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 326 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 339 of file wallet.h.