Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show All 30 Lines | |||||
#include <map> | #include <map> | ||||
#include <memory> | #include <memory> | ||||
#include <set> | #include <set> | ||||
#include <stdexcept> | #include <stdexcept> | ||||
#include <string> | #include <string> | ||||
#include <utility> | #include <utility> | ||||
#include <vector> | #include <vector> | ||||
//! Responsible for reading and validating the -wallet arguments and verifying | |||||
//! the wallet database. | |||||
// This function will perform salvage on the wallet if requested, as long as | |||||
// only one wallet is being loaded (WalletParameterInteraction forbids | |||||
// -salvagewallet, -zapwallettxes or -upgradewallet with multiwallet). | |||||
bool VerifyWallets(const CChainParams &chainParams, interfaces::Chain &chain, | |||||
const std::vector<std::string> &wallet_files); | |||||
//! Load wallet databases. | |||||
bool LoadWallets(const CChainParams &chainParams, interfaces::Chain &chain, | |||||
const std::vector<std::string> &wallet_files); | |||||
//! Complete startup of wallets. | |||||
void StartWallets(CScheduler &scheduler); | |||||
//! Flush all wallets in preparation for shutdown. | |||||
void FlushWallets(); | |||||
//! Stop all wallets. Wallets will be flushed first. | |||||
void StopWallets(); | |||||
//! Close all wallets. | |||||
void UnloadWallets(); | |||||
bool AddWallet(const std::shared_ptr<CWallet> &wallet); | bool AddWallet(const std::shared_ptr<CWallet> &wallet); | ||||
bool RemoveWallet(const std::shared_ptr<CWallet> &wallet); | bool RemoveWallet(const std::shared_ptr<CWallet> &wallet); | ||||
bool HasWallets(); | bool HasWallets(); | ||||
std::vector<std::shared_ptr<CWallet>> GetWallets(); | std::vector<std::shared_ptr<CWallet>> GetWallets(); | ||||
std::shared_ptr<CWallet> GetWallet(const std::string &name); | std::shared_ptr<CWallet> GetWallet(const std::string &name); | ||||
//! Default for -keypool | //! Default for -keypool | ||||
static const unsigned int DEFAULT_KEYPOOL_SIZE = 1000; | static const unsigned int DEFAULT_KEYPOOL_SIZE = 1000; | ||||
▲ Show 20 Lines • Show All 1,549 Lines • Show Last 20 Lines |