Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,062 Lines • ▼ Show 20 Lines | public: | ||||
}; | }; | ||||
ScanResult ScanForWalletTransactions(const BlockHash &first_block, | ScanResult ScanForWalletTransactions(const BlockHash &first_block, | ||||
const BlockHash &last_block, | const BlockHash &last_block, | ||||
const WalletRescanReserver &reserver, | const WalletRescanReserver &reserver, | ||||
bool fUpdate); | bool fUpdate); | ||||
void TransactionRemovedFromMempool(const CTransactionRef &ptx) override; | void TransactionRemovedFromMempool(const CTransactionRef &ptx) override; | ||||
void ReacceptWalletTransactions(); | void ReacceptWalletTransactions(); | ||||
void ResendWalletTransactions(); | void ResendWalletTransactions(); | ||||
Amount GetBalance(const isminefilter &filter = ISMINE_SPENDABLE, | struct Balance { | ||||
const int min_depth = 0) const; | //! Trusted, at depth=GetBalance.min_depth or more | ||||
Amount GetUnconfirmedBalance() const; | Amount m_mine_trusted{Amount::zero()}; | ||||
Amount GetImmatureBalance() const; | //! Untrusted, but in mempool (pending) | ||||
Amount GetUnconfirmedWatchOnlyBalance() const; | Amount m_mine_untrusted_pending{Amount::zero()}; | ||||
Amount GetImmatureWatchOnlyBalance() const; | //! Immature coinbases in the main chain | ||||
Amount m_mine_immature{Amount::zero()}; | |||||
Amount m_watchonly_trusted{Amount::zero()}; | |||||
Amount m_watchonly_untrusted_pending{Amount::zero()}; | |||||
Amount m_watchonly_immature{Amount::zero()}; | |||||
}; | |||||
Balance GetBalance(int min_depth = 0) const; | |||||
Amount GetAvailableBalance(const CCoinControl *coinControl = nullptr) const; | Amount GetAvailableBalance(const CCoinControl *coinControl = nullptr) const; | ||||
OutputType TransactionChangeType(OutputType change_type, | OutputType TransactionChangeType(OutputType change_type, | ||||
const std::vector<CRecipient> &vecSend); | const std::vector<CRecipient> &vecSend); | ||||
/** | /** | ||||
* Insert additional inputs into the transaction by calling | * Insert additional inputs into the transaction by calling | ||||
* CreateTransaction(); | * CreateTransaction(); | ||||
▲ Show 20 Lines • Show All 419 Lines • Show Last 20 Lines |