Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/load.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2018 The Bitcoin Core developers | // Copyright (c) 2009-2018 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_WALLET_LOAD_H | #ifndef BITCOIN_WALLET_LOAD_H | ||||
#define BITCOIN_WALLET_LOAD_H | #define BITCOIN_WALLET_LOAD_H | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
class ArgsManager; | class ArgsManager; | ||||
class CChainParams; | |||||
class CScheduler; | class CScheduler; | ||||
namespace interfaces { | namespace interfaces { | ||||
class Chain; | class Chain; | ||||
} // namespace interfaces | } // namespace interfaces | ||||
//! Responsible for reading and validating the -wallet arguments and verifying | //! Responsible for reading and validating the -wallet arguments and verifying | ||||
//! the wallet database. | //! the wallet database. | ||||
bool VerifyWallets(const CChainParams &chainParams, interfaces::Chain &chain, | bool VerifyWallets(interfaces::Chain &chain, | ||||
const std::vector<std::string> &wallet_files); | const std::vector<std::string> &wallet_files); | ||||
//! Load wallet databases. | //! Load wallet databases. | ||||
bool LoadWallets(const CChainParams &chainParams, interfaces::Chain &chain, | bool LoadWallets(interfaces::Chain &chain, | ||||
const std::vector<std::string> &wallet_files); | const std::vector<std::string> &wallet_files); | ||||
//! Complete startup of wallets. | //! Complete startup of wallets. | ||||
void StartWallets(CScheduler &scheduler, const ArgsManager &args); | void StartWallets(CScheduler &scheduler, const ArgsManager &args); | ||||
//! Flush all wallets in preparation for shutdown. | //! Flush all wallets in preparation for shutdown. | ||||
void FlushWallets(); | void FlushWallets(); | ||||
//! Stop all wallets. Wallets will be flushed first. | //! Stop all wallets. Wallets will be flushed first. | ||||
void StopWallets(); | void StopWallets(); | ||||
//! Close all wallets. | //! Close all wallets. | ||||
void UnloadWallets(); | void UnloadWallets(); | ||||
#endif // BITCOIN_WALLET_LOAD_H | #endif // BITCOIN_WALLET_LOAD_H |