Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
std::shared_ptr<CWallet> GetWallet(const std::string &name); | std::shared_ptr<CWallet> GetWallet(const std::string &name); | ||||
std::shared_ptr<CWallet> LoadWallet(const CChainParams &chainParams, | std::shared_ptr<CWallet> LoadWallet(const CChainParams &chainParams, | ||||
interfaces::Chain &chain, | interfaces::Chain &chain, | ||||
const WalletLocation &location, | const WalletLocation &location, | ||||
std::string &error, std::string &warning); | std::string &error, std::string &warning); | ||||
enum class WalletCreationStatus { SUCCESS, CREATION_FAILED, ENCRYPTION_FAILED }; | enum class WalletCreationStatus { SUCCESS, CREATION_FAILED, ENCRYPTION_FAILED }; | ||||
std::shared_ptr<CWallet> | WalletCreationStatus | ||||
CreateWallet(const CChainParams ¶ms, interfaces::Chain &chain, | CreateWallet(const CChainParams ¶ms, interfaces::Chain &chain, | ||||
const SecureString &passphrase, uint64_t wallet_creation_flags, | const SecureString &passphrase, uint64_t wallet_creation_flags, | ||||
const std::string &name, std::string &error, std::string &warning, | const std::string &name, std::string &error, std::string &warning, | ||||
WalletCreationStatus &status); | std::shared_ptr<CWallet> &result); | ||||
//! 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,619 Lines • Show Last 20 Lines |