Raven Core  3.0.0
P2P Digital Currency
init.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2017 The Bitcoin Core developers
3 // Copyright (c) 2017-2019 The Raven Core developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #ifndef RAVEN_WALLET_INIT_H
8 #define RAVEN_WALLET_INIT_H
9 
10 #include <string>
11 
12 class CRPCTable;
13 class CScheduler;
14 
16 std::string GetWalletHelpString(bool showDebug);
17 
20 
23 
25 // This function will perform salvage on the wallet if requested, as long as only one wallet is
26 // being loaded (WalletParameterInteraction forbids -salvagewallet, -zapwallettxes or -upgradewallet with multiwallet).
27 bool VerifyWallets();
28 
30 bool OpenWallets();
31 
33 void StartWallets(CScheduler& scheduler);
34 
36 void FlushWallets();
37 
39 void StopWallets();
40 
42 void CloseWallets();
43 
44 #endif // RAVEN_WALLET_INIT_H
Raven RPC command dispatcher.
Definition: server.h:143
bool OpenWallets()
Load wallet databases.
Definition: init.cpp:239
CRPCTable tableRPC
Definition: server.cpp:567
bool WalletParameterInteraction()
Wallets parameter interaction.
Definition: init.cpp:55
void CloseWallets()
Close all wallets.
Definition: init.cpp:275
bool VerifyWallets()
Responsible for reading and validating the -wallet arguments and verifying the wallet database...
Definition: init.cpp:182
void StopWallets()
Stop all wallets. Wallets will be flushed first.
Definition: init.cpp:269
void StartWallets(CScheduler &scheduler)
Complete startup of wallets.
Definition: init.cpp:257
void FlushWallets()
Flush all wallets in preparation for shutdown.
Definition: init.cpp:263
std::string GetWalletHelpString(bool showDebug)
Return the wallets help message.
Definition: init.cpp:16
void RegisterWalletRPC(CRPCTable &tableRPC)
Register wallet RPCs.
Definition: init.cpp:175