Bitcoin Core  22.99.0
P2P Digital Currency
load.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2020 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef BITCOIN_WALLET_LOAD_H
7 #define BITCOIN_WALLET_LOAD_H
8 
9 #include <string>
10 #include <vector>
11 
12 class ArgsManager;
13 class CScheduler;
14 
15 namespace interfaces {
16 class Chain;
17 } // namespace interfaces
18 
19 namespace wallet {
20 struct WalletContext;
21 
23 bool VerifyWallets(WalletContext& context);
24 
26 bool LoadWallets(WalletContext& context);
27 
29 void StartWallets(WalletContext& context, CScheduler& scheduler);
30 
32 void FlushWallets(WalletContext& context);
33 
35 void StopWallets(WalletContext& context);
36 
38 void UnloadWallets(WalletContext& context);
39 } // namespace wallet
40 
41 #endif // BITCOIN_WALLET_LOAD_H
wallet::StartWallets
void StartWallets(WalletContext &context, CScheduler &scheduler)
Complete startup of wallets.
Definition: load.cpp:139
interfaces
Definition: dummywallet.cpp:10
CScheduler
Simple class for background tasks that should be run periodically or once "after a while".
Definition: scheduler.h:33
wallet::UnloadWallets
void UnloadWallets(WalletContext &context)
Close all wallets.
Definition: load.cpp:166
wallet
Definition: node.h:38
wallet::FlushWallets
void FlushWallets(WalletContext &context)
Flush all wallets in preparation for shutdown.
Definition: load.cpp:152
wallet::LoadWallets
bool LoadWallets(WalletContext &context)
Load wallet databases.
Definition: load.cpp:103
context
WalletContext context
Definition: notifications.cpp:37
wallet::VerifyWallets
bool VerifyWallets(WalletContext &context)
Responsible for reading and validating the -wallet arguments and verifying the wallet database.
Definition: load.cpp:25
ArgsManager
Definition: system.h:164
wallet::StopWallets
void StopWallets(WalletContext &context)
Stop all wallets. Wallets will be flushed first.
Definition: load.cpp:159