Bitcoin Core 31.0.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

CWalletm_wallet
bool m_could_reserve {false}
NowFn m_now

Detailed Description

RAII object to check and reserve a wallet rescan.

Definition at line 1087 of file wallet.h.

Member Typedef Documentation

◆ Clock

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

Definition at line 1090 of file wallet.h.

◆ NowFn

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

Definition at line 1091 of file wallet.h.

Constructor & Destructor Documentation

◆ WalletRescanReserver()

Definition at line 1096 of file wallet.h.

◆ ~WalletRescanReserver()

Definition at line 1120 of file wallet.h.

Member Function Documentation

◆ isReserved()

Definition at line 1111 of file wallet.h.

◆ now()

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

Definition at line 1116 of file wallet.h.

◆ reserve()

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

Definition at line 1098 of file wallet.h.

◆ setNow()

Definition at line 1118 of file wallet.h.

Member Data Documentation

◆ m_could_reserve

Definition at line 1093 of file wallet.h.

◆ m_now

Definition at line 1094 of file wallet.h.

◆ m_wallet

Definition at line 1092 of file wallet.h.


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