wallet::WalletRescanReserver

RAII object to check and reserve a wallet rescan

Synopsis

Declared in <wallet/wallet.h>

class WalletRescanReserver;

Member Functions

NameDescription
WalletRescanReserver [constructor]Construct a reserver for the given wallet without reserving yet.
~WalletRescanReserver [destructor]Release the rescan reservation if this object holds it.
isReserved Report whether this object currently holds the rescan reservation.
now Return the current time, using the injected clock if one is set.
reserve Attempt to reserve the wallet for a rescan.
setNow Override the clock used by now(), for testing.