Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,057 Lines • ▼ Show 20 Lines | struct ScanResult { | ||||
BlockHash last_failed_block; | BlockHash last_failed_block; | ||||
}; | }; | ||||
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 | void ResendWalletTransactions(interfaces::Chain::Lock &locked_chain); | ||||
ResendWalletTransactions(interfaces::Chain::Lock &locked_chain) override; | |||||
Amount GetBalance(const isminefilter &filter = ISMINE_SPENDABLE, | Amount GetBalance(const isminefilter &filter = ISMINE_SPENDABLE, | ||||
const int min_depth = 0) const; | const int min_depth = 0) const; | ||||
Amount GetUnconfirmedBalance() const; | Amount GetUnconfirmedBalance() const; | ||||
Amount GetImmatureBalance() const; | Amount GetImmatureBalance() const; | ||||
Amount GetUnconfirmedWatchOnlyBalance() const; | Amount GetUnconfirmedWatchOnlyBalance() const; | ||||
Amount GetImmatureWatchOnlyBalance() const; | Amount GetImmatureWatchOnlyBalance() const; | ||||
Amount GetLegacyBalance(const isminefilter &filter, int minDepth) const; | Amount GetLegacyBalance(const isminefilter &filter, int minDepth) const; | ||||
Amount GetAvailableBalance(const CCoinControl *coinControl = nullptr) const; | Amount GetAvailableBalance(const CCoinControl *coinControl = nullptr) const; | ||||
▲ Show 20 Lines • Show All 342 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Implement lookup of key origin information through wallet key metadata. | * Implement lookup of key origin information through wallet key metadata. | ||||
*/ | */ | ||||
bool GetKeyOrigin(const CKeyID &keyid, KeyOriginInfo &info) const override; | bool GetKeyOrigin(const CKeyID &keyid, KeyOriginInfo &info) const override; | ||||
friend struct WalletTestingSetup; | friend struct WalletTestingSetup; | ||||
}; | }; | ||||
/** | |||||
* Called periodically by the schedule thread. Prompts individual wallets to | |||||
* resend their transactions. Actual rebroadcast schedule is managed by the | |||||
* wallets themselves. | |||||
*/ | |||||
void MaybeResendWalletTxs(); | |||||
/** A key allocated from the key pool. */ | /** A key allocated from the key pool. */ | ||||
class CReserveKey final : public CReserveScript { | class CReserveKey final : public CReserveScript { | ||||
protected: | protected: | ||||
CWallet *pwallet; | CWallet *pwallet; | ||||
int64_t nIndex{-1}; | int64_t nIndex{-1}; | ||||
CPubKey vchPubKey; | CPubKey vchPubKey; | ||||
bool fInternal{false}; | bool fInternal{false}; | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |