aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-05-24 17:13:13 -0400
committerAndrew Chow <achow101-github@achow101.com>2019-07-09 19:50:16 -0400
commit1aecdf2063cbe28d4715ae5ae1a7e51b860c9f4d (patch)
tree80c6305c3d76181614f9501cf2409b08336e3c23 /src/wallet/wallet.h
parent357488f660a570dc97d969ae92e026854d167142 (diff)
downloadbitcoin-1aecdf2063cbe28d4715ae5ae1a7e51b860c9f4d.tar.xz
Move wallet creation out of the createwallet rpc into its own function
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 7b5465c219..b4357fb2ef 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -49,6 +49,14 @@ std::vector<std::shared_ptr<CWallet>> GetWallets();
std::shared_ptr<CWallet> GetWallet(const std::string& name);
std::shared_ptr<CWallet> LoadWallet(interfaces::Chain& chain, const WalletLocation& location, std::string& error, std::string& warning);
+enum WalletCreationStatus {
+ SUCCESS,
+ CREATION_FAILED,
+ ENCRYPTION_FAILED
+};
+
+std::shared_ptr<CWallet> CreateWallet(interfaces::Chain& chain, const std::string& name, std::string& error, std::string& warning, WalletCreationStatus& status, const SecureString& passphrase, uint64_t wallet_creation_flags);
+
//! Default for -keypool
static const unsigned int DEFAULT_KEYPOOL_SIZE = 1000;
//! -paytxfee default