Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,066 Lines • ▼ Show 20 Lines | int64_t RescanFromTime(int64_t startTime, | ||||
const WalletRescanReserver &reserver, bool update); | const WalletRescanReserver &reserver, bool update); | ||||
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 stop_block; | BlockHash last_scanned_block; | ||||
Optional<int> stop_height; | 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 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 | ||||
▲ Show 20 Lines • Show All 433 Lines • Show Last 20 Lines |