Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
WalletRescanReserver Class Reference

RAII object to check and reserve a wallet rescan. More...

#include <wallet.h>

Collaboration diagram for WalletRescanReserver:
[legend]

Public Member Functions

 WalletRescanReserver (CWallet &w)
bool reserve (bool with_passphrase=false)
bool isReserved () const
Clock::time_point now () const
void setNow (NowFn now)
 ~WalletRescanReserver ()

Private Types

using Clock = std::chrono::steady_clock
using NowFn = std::function<Clock::time_point()>

Private Attributes

CWallet & m_wallet
bool m_could_reserve {false}
NowFn m_now

Detailed Description

RAII object to check and reserve a wallet rescan.

Definition at line 1114 of file wallet.h.

Member Typedef Documentation

◆ Clock

using wallet::WalletRescanReserver::Clock = std::chrono::steady_clock
private

Definition at line 1117 of file wallet.h.

◆ NowFn

using wallet::WalletRescanReserver::NowFn = std::function<Clock::time_point()>
private

Definition at line 1118 of file wallet.h.

Constructor & Destructor Documentation

◆ WalletRescanReserver()

Definition at line 1123 of file wallet.h.

◆ ~WalletRescanReserver()

Definition at line 1151 of file wallet.h.

Member Function Documentation

◆ isReserved()

Definition at line 1142 of file wallet.h.

◆ now()

Clock::time_point wallet::WalletRescanReserver::now ( ) const
inline

Definition at line 1147 of file wallet.h.

◆ reserve()

bool wallet::WalletRescanReserver::reserve ( bool with_passphrase = false)
inline

Definition at line 1125 of file wallet.h.

◆ setNow()

Definition at line 1149 of file wallet.h.

Member Data Documentation

◆ m_could_reserve

Definition at line 1120 of file wallet.h.

◆ m_now

Definition at line 1121 of file wallet.h.

◆ m_wallet

Definition at line 1119 of file wallet.h.


The documentation for this class was generated from the following file: