[#wallet-WalletRescanReserver]
= xref:wallet.adoc[wallet]::WalletRescanReserver
:relfileprefix: ../
:mrdocs:

RAII object to check and reserve a wallet rescan

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class WalletRescanReserver;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/WalletRescanReserver/2constructor.adoc[`WalletRescanReserver`]         [.small]#[constructor]#
| Construct a reserver for the given wallet without reserving yet&period;
| xref:wallet/WalletRescanReserver/2destructor.adoc[`&#126;WalletRescanReserver`] [.small]#[destructor]#
| Release the rescan reservation if this object holds it&period;
| xref:wallet/WalletRescanReserver/isReserved.adoc[`isReserved`] 
| Report whether this object currently holds the rescan reservation&period;
| xref:wallet/WalletRescanReserver/now.adoc[`now`] 
| Return the current time, using the injected clock if one is set&period;
| xref:wallet/WalletRescanReserver/reserve.adoc[`reserve`] 
| Attempt to reserve the wallet for a rescan&period;
| xref:wallet/WalletRescanReserver/setNow.adoc[`setNow`] 
| Override the clock used by now(), for testing&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
