Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | if (!result.second) { | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
auto wallet = | auto wallet = | ||||
LoadWalletInternal(chainParams, chain, location, error, warnings); | LoadWalletInternal(chainParams, chain, location, error, warnings); | ||||
WITH_LOCK(g_loading_wallet_mutex, g_loading_wallet_set.erase(result.first)); | WITH_LOCK(g_loading_wallet_mutex, g_loading_wallet_set.erase(result.first)); | ||||
return wallet; | return wallet; | ||||
} | } | ||||
std::shared_ptr<CWallet> LoadWallet(const CChainParams &chainParams, | |||||
interfaces::Chain &chain, | |||||
const std::string &name, | |||||
bilingual_str &error, | |||||
std::vector<bilingual_str> &warnings) { | |||||
return LoadWallet(chainParams, chain, WalletLocation(name), error, | |||||
warnings); | |||||
} | |||||
WalletCreationStatus CreateWallet(const CChainParams ¶ms, | WalletCreationStatus CreateWallet(const CChainParams ¶ms, | ||||
interfaces::Chain &chain, | interfaces::Chain &chain, | ||||
const SecureString &passphrase, | const SecureString &passphrase, | ||||
uint64_t wallet_creation_flags, | uint64_t wallet_creation_flags, | ||||
const std::string &name, bilingual_str &error, | const std::string &name, bilingual_str &error, | ||||
std::vector<bilingual_str> &warnings, | std::vector<bilingual_str> &warnings, | ||||
std::shared_ptr<CWallet> &result) { | std::shared_ptr<CWallet> &result) { | ||||
// Indicate that the wallet is actually supposed to be blank and not just | // Indicate that the wallet is actually supposed to be blank and not just | ||||
▲ Show 20 Lines • Show All 4,871 Lines • Show Last 20 Lines |