Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show All 25 Lines | |||||
#include <cstdint> | #include <cstdint> | ||||
#include <map> | #include <map> | ||||
#include <set> | #include <set> | ||||
#include <stdexcept> | #include <stdexcept> | ||||
#include <string> | #include <string> | ||||
#include <utility> | #include <utility> | ||||
#include <vector> | #include <vector> | ||||
bool AddWallet(CWallet *wallet); | bool AddWallet(const std::shared_ptr<CWallet> &wallet); | ||||
bool RemoveWallet(CWallet *wallet); | bool RemoveWallet(const std::shared_ptr<CWallet> &wallet); | ||||
bool HasWallets(); | bool HasWallets(); | ||||
std::vector<CWallet *> GetWallets(); | std::vector<std::shared_ptr<CWallet>> GetWallets(); | ||||
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; | ||||
//! -paytxfee default | //! -paytxfee default | ||||
constexpr Amount DEFAULT_PAY_TX_FEE = Amount::zero(); | constexpr Amount DEFAULT_PAY_TX_FEE = Amount::zero(); | ||||
//! -fallbackfee default | //! -fallbackfee default | ||||
static const Amount DEFAULT_FALLBACK_FEE(20000 * SATOSHI); | static const Amount DEFAULT_FALLBACK_FEE(20000 * SATOSHI); | ||||
//! -mintxfee default | //! -mintxfee default | ||||
▲ Show 20 Lines • Show All 1,187 Lines • ▼ Show 20 Lines | public: | ||||
static bool Verify(const CChainParams &chainParams, std::string wallet_file, | static bool Verify(const CChainParams &chainParams, std::string wallet_file, | ||||
bool salvage_wallet, std::string &error_string, | bool salvage_wallet, std::string &error_string, | ||||
std::string &warning_string); | std::string &warning_string); | ||||
/** | /** | ||||
* Initializes the wallet, returns a new CWallet instance or a null pointer | * Initializes the wallet, returns a new CWallet instance or a null pointer | ||||
* in case of an error. | * in case of an error. | ||||
*/ | */ | ||||
static CWallet *CreateWalletFromFile(const CChainParams &chainParams, | static std::shared_ptr<CWallet> | ||||
const std::string &name, | CreateWalletFromFile(const CChainParams &chainParams, | ||||
const fs::path &path); | const std::string &name, const fs::path &path); | ||||
/** | /** | ||||
* Wallet post-init setup | * Wallet post-init setup | ||||
* Gives the wallet a chance to register repetitive tasks and complete | * Gives the wallet a chance to register repetitive tasks and complete | ||||
* post-init tasks | * post-init tasks | ||||
*/ | */ | ||||
void postInitProcess(); | void postInitProcess(); | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |