![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
A transaction with a bunch of additional info that only the owner cares about. More...
#include <wallet.h>
Classes | |
| struct | Confirmation |
Public Types | |
| enum | AmountType { DEBIT , CREDIT , IMMATURE_CREDIT , AVAILABLE_CREDIT , AMOUNTTYPE_ENUM_ELEMENTS } |
| position in ordered transaction list More... | |
| enum | Status { UNCONFIRMED , CONFIRMED , CONFLICTED , ABANDONED } |
Public Member Functions | |
| CAmount | GetCachableAmount (AmountType type, const isminefilter &filter, bool recalculate=false) const |
| bool | IsAmountCached (AmountType type, const isminefilter &filter) const |
| 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 | SetTx (CTransactionRef arg) |
| void | MarkDirty () |
| make sure balances are recalculated More... | |
| void | BindWallet (CWallet *pwalletIn) |
| void | SetSaplingNoteData (mapSaplingNoteData_t ¬eData) |
| Optional< std::pair< libzcash::SaplingNotePlaintext, libzcash::SaplingPaymentAddress > > | DecryptSaplingNote (const SaplingOutPoint &op) const |
| Optional< std::pair< libzcash::SaplingNotePlaintext, libzcash::SaplingPaymentAddress > > | RecoverSaplingNote (const SaplingOutPoint &op, const std::set< uint256 > &ovks) const |
| bool | HasP2CSInputs () const |
| checks whether a tx has P2CS inputs or not More... | |
| void | SetComment (const std::string &comment) |
| Store a comment. More... | |
| std::string | GetComment () const |
| int | GetDepthAndMempool (bool &fConflicted) const |
| CAmount | GetDebit (const isminefilter &filter) const |
| filter decides which addresses will count towards the debit More... | |
| CAmount | GetCredit (const isminefilter &filter, bool recalculate=false) const |
| CAmount | GetImmatureCredit (bool fUseCache=true, const isminefilter &filter=ISMINE_SPENDABLE_ALL) const |
| CAmount | GetAvailableCredit (bool fUseCache=true, const isminefilter &filter=ISMINE_SPENDABLE) const |
| CAmount | GetLockedCredit () const |
| CAmount | GetImmatureWatchOnlyCredit (const bool fUseCache=true) const |
| CAmount | GetAvailableWatchOnlyCredit (const bool fUseCache=true) const |
| CAmount | GetChange () const |
| CAmount | GetShieldedChange () const |
| CAmount | GetShieldedAvailableCredit (bool fUseCache=true) const |
| CAmount | GetColdStakingCredit (bool fUseCache=true) const |
| CAmount | GetColdStakingDebit (bool fUseCache=true) const |
| CAmount | GetStakeDelegationCredit (bool fUseCache=true) const |
| CAmount | GetStakeDelegationDebit (bool fUseCache=true) const |
| void | GetAmounts (std::list< COutputEntry > &listReceived, std::list< COutputEntry > &listSent, CAmount &nFee, const isminefilter &filter) const |
| bool | IsFromMe (const isminefilter &filter) const |
| bool | InMempool () const |
| bool | IsEquivalentTo (const CWalletTx &tx) const |
| bool | IsTrusted () const |
| bool | IsTrusted (int &nDepth, bool &fConflicted) const |
| int64_t | GetTxTime () const |
| void | UpdateTimeSmart () |
| Update smart timestamp for a transaction being added to the wallet. More... | |
| void | RelayWalletTransaction (CConnman *connman) |
| std::set< uint256 > | GetConflicts () const |
| int | GetDepthInMainChain () const NO_THREAD_SAFETY_ANALYSIS |
| 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 | IsInMainChainImmature () const |
| int | GetBlocksToMaturity () const |
| bool | isAbandoned () const |
| void | setAbandoned () |
| bool | isConflicted () const |
| void | setConflicted () |
| bool | isUnconfirmed () const |
| void | setUnconfirmed () |
| bool | isConfirmed () const |
| void | setConfirmed () |
| const uint256 & | GetHash () const |
| bool | IsCoinBase () const |
| bool | IsCoinStake () const |
| bool | AcceptToMemoryPool (CValidationState &state) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| Pass this transaction to the mempool. More... | |
Public Attributes | |
| mapValue_t | mapValue |
| mapSaplingNoteData_t | mapSaplingNoteData |
| std::vector< std::pair< std::string, std::string > > | vOrderForm |
| unsigned int | fTimeReceivedIsTxTime |
| unsigned int | nTimeReceived |
| unsigned int | nTimeSmart |
| time received by this node More... | |
| char | fFromMe |
| int64_t | nOrderPos |
| CachableAmount | m_amounts [AMOUNTTYPE_ENUM_ELEMENTS] |
| bool | fStakeDelegationVoided |
| bool | fChangeCached |
| bool | fInMempool |
| CAmount | nChangeCached |
| bool | fShieldedChangeCached |
| CAmount | nShieldedChangeCached |
| CTransactionRef | tx |
| Confirmation | m_confirm |
Private Attributes | |
| const CWallet * | pwallet |
Static Private Attributes | |
| static const uint256 | ABANDON_HASH |
| Constant used in hashBlock to indicate tx has been abandoned, only used at serialization/deserialization to avoid ambiguity with conflicted. More... | |
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.
| enum CWalletTx::Status |
| CWalletTx::CWalletTx | ( | const CWallet * | pwalletIn, |
| CTransactionRef | arg | ||
| ) |
| bool CWalletTx::AcceptToMemoryPool | ( | CValidationState & | state | ) |
Pass this transaction to the mempool.
Fails if absolute fee exceeds absurd fee.
Definition at line 4501 of file wallet.cpp.
| void CWalletTx::BindWallet | ( | CWallet * | pwalletIn | ) |
Definition at line 4846 of file wallet.cpp.
| Optional< std::pair< libzcash::SaplingNotePlaintext, libzcash::SaplingPaymentAddress > > CWalletTx::DecryptSaplingNote | ( | const SaplingOutPoint & | op | ) | const |
| int CWalletTx::GetBlocksToMaturity | ( | ) | const |
Definition at line 4486 of file wallet.cpp.
| CAmount CWalletTx::GetChange | ( | ) | const |
Definition at line 4930 of file wallet.cpp.
|
inline |
| int CWalletTx::GetDepthAndMempool | ( | bool & | fConflicted | ) | const |
Definition at line 4817 of file wallet.cpp.
| int CWalletTx::GetDepthInMainChain | ( | ) | 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 4477 of file wallet.cpp.
|
inline |
| CAmount CWalletTx::GetShieldedChange | ( | ) | const |
Definition at line 4939 of file wallet.cpp.
| bool CWalletTx::HasP2CSInputs | ( | ) | const |
checks whether a tx has P2CS inputs or not
Definition at line 4925 of file wallet.cpp.
| void CWalletTx::Init | ( | const CWallet * | pwalletIn | ) |
|
inline |
|
inline |
|
inline |
| bool CWalletTx::IsEquivalentTo | ( | const CWalletTx & | tx | ) | const |
Definition at line 4824 of file wallet.cpp.
| bool CWalletTx::IsFromMe | ( | const isminefilter & | filter | ) | const |
| bool CWalletTx::IsInMainChainImmature | ( | ) | const |
Definition at line 4493 of file wallet.cpp.
| bool CWalletTx::IsTrusted | ( | ) | const |
| bool CWalletTx::IsTrusted | ( | int & | nDepth, |
| bool & | fConflicted | ||
| ) | const |
| void CWalletTx::MarkDirty | ( | ) |
make sure balances are recalculated
Definition at line 4833 of file wallet.cpp.
| Optional< std::pair< libzcash::SaplingNotePlaintext, libzcash::SaplingPaymentAddress > > CWalletTx::RecoverSaplingNote | ( | const SaplingOutPoint & | op, |
| const std::set< uint256 > & | ovks | ||
| ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void CWalletTx::SetSaplingNoteData | ( | mapSaplingNoteData_t & | noteData | ) |
|
inline |
|
inline |
|
staticprivate |
|
mutable |
| Confirmation CWalletTx::m_confirm |
| mapSaplingNoteData_t CWalletTx::mapSaplingNoteData |
| mapValue_t CWalletTx::mapValue |
| unsigned int CWalletTx::nTimeSmart |
| CTransactionRef CWalletTx::tx |
| std::vector<std::pair<std::string, std::string> > CWalletTx::vOrderForm |