Merge #11997: [tests] util_tests.cpp: actually check ignored args
[bitcoinplatinum.git] / src / wallet / init.h
blob0b3ee2dda260d5b525af995c9c089c7ef3d7888c
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2017 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.
6 #ifndef BITCOIN_WALLET_INIT_H
7 #define BITCOIN_WALLET_INIT_H
9 #include <string>
11 class CRPCTable;
12 class CScheduler;
14 //! Return the wallets help message.
15 std::string GetWalletHelpString(bool showDebug);
17 //! Wallets parameter interaction
18 bool WalletParameterInteraction();
20 //! Register wallet RPCs.
21 void RegisterWalletRPC(CRPCTable &tableRPC);
23 //! Responsible for reading and validating the -wallet arguments and verifying the wallet database.
24 // This function will perform salvage on the wallet if requested, as long as only one wallet is
25 // being loaded (WalletParameterInteraction forbids -salvagewallet, -zapwallettxes or -upgradewallet with multiwallet).
26 bool VerifyWallets();
28 //! Load wallet databases.
29 bool OpenWallets();
31 //! Complete startup of wallets.
32 void StartWallets(CScheduler& scheduler);
34 //! Flush all wallets in preparation for shutdown.
35 void FlushWallets();
37 //! Stop all wallets. Wallets will be flushed first.
38 void StopWallets();
40 //! Close all wallets.
41 void CloseWallets();
43 #endif // BITCOIN_WALLET_INIT_H