Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,056 Lines • ▼ Show 20 Lines | public: | ||||
struct ScanResult { | struct ScanResult { | ||||
enum { SUCCESS, FAILURE, USER_ABORT } status = SUCCESS; | enum { SUCCESS, FAILURE, USER_ABORT } status = SUCCESS; | ||||
//! Hash and height of most recent block that was successfully scanned. | //! Hash and height of most recent block that was successfully scanned. | ||||
//! Unset if no blocks were scanned due to read errors or the chain | //! Unset if no blocks were scanned due to read errors or the chain | ||||
//! being empty. | //! being empty. | ||||
BlockHash last_scanned_block; | BlockHash last_scanned_block; | ||||
Optional<int> last_scanned_height; | std::optional<int> last_scanned_height; | ||||
//! Hash of the most recent block that could not be scanned due to | //! Hash of the most recent block that could not be scanned due to | ||||
//! read errors or pruning. Will be set if status is FAILURE, unset if | //! read errors or pruning. Will be set if status is FAILURE, unset if | ||||
//! status is SUCCESS, and may or may not be set if status is | //! status is SUCCESS, and may or may not be set if status is | ||||
//! USER_ABORT. | //! USER_ABORT. | ||||
BlockHash last_failed_block; | BlockHash last_failed_block; | ||||
}; | }; | ||||
ScanResult ScanForWalletTransactions(const BlockHash &start_block, | ScanResult ScanForWalletTransactions(const BlockHash &start_block, | ||||
int start_height, | int start_height, | ||||
Optional<int> max_height, | std::optional<int> max_height, | ||||
const WalletRescanReserver &reserver, | const WalletRescanReserver &reserver, | ||||
bool fUpdate); | bool fUpdate); | ||||
void transactionRemovedFromMempool(const CTransactionRef &ptx) override; | void transactionRemovedFromMempool(const CTransactionRef &ptx) override; | ||||
void ReacceptWalletTransactions() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | void ReacceptWalletTransactions() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
void ResendWalletTransactions(); | void ResendWalletTransactions(); | ||||
struct Balance { | struct Balance { | ||||
//! Trusted, at depth=GetBalance.min_depth or more | //! Trusted, at depth=GetBalance.min_depth or more | ||||
Amount m_mine_trusted{Amount::zero()}; | Amount m_mine_trusted{Amount::zero()}; | ||||
▲ Show 20 Lines • Show All 503 Lines • Show Last 20 Lines |