Bitcoin ABC 0.32.4
P2P Digital Currency
load.h
Go to the documentation of this file.
1// Copyright (c) 2009-2010 Satoshi Nakamoto
2// Copyright (c) 2009-2018 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
12class ArgsManager;
13class CScheduler;
14struct WalletContext;
15
16namespace interfaces {
17class Chain;
18} // namespace interfaces
19
21// the wallet database.
22bool VerifyWallets(WalletContext &context);
23
25bool LoadWallets(WalletContext &context);
26
28void StartWallets(WalletContext &context, CScheduler &scheduler);
29
31void FlushWallets(WalletContext &context);
32
34void StopWallets(WalletContext &context);
35
37void UnloadWallets(WalletContext &context);
38
39#endif // BITCOIN_WALLET_LOAD_H
Simple class for background tasks that should be run periodically or once "after a while".
Definition: scheduler.h:41
void FlushWallets(WalletContext &context)
Flush all wallets in preparation for shutdown.
Definition: load.cpp:177
void StopWallets(WalletContext &context)
Stop all wallets. Wallets will be flushed first.
Definition: load.cpp:183
void StartWallets(WalletContext &context, CScheduler &scheduler)
Complete startup of wallets.
Definition: load.cpp:155
bool LoadWallets(WalletContext &context)
Load wallet databases.
Definition: load.cpp:109
bool VerifyWallets(WalletContext &context)
Responsible for reading and validating the -wallet arguments and verifying.
Definition: load.cpp:24
void UnloadWallets(WalletContext &context)
Close all wallets.
Definition: load.cpp:189
WalletContext struct containing references to state shared between CWallet instances,...
Definition: context.h:35