aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallettool.cpp
diff options
context:
space:
mode:
authorIvan Metlushko <metlushko@gmail.com>2020-12-18 17:45:11 +0100
committerIvan Metlushko <metlushko@gmail.com>2021-05-19 08:50:16 +0200
commite2a47ce08528dfb39c0340145c6977f6afd587f6 (patch)
treef945e6ef156bfc81e97d47059c3725da9b66088d /src/wallet/wallettool.cpp
parent2fa3f30050f2db665605c8371b1fd131f39a2f9b (diff)
downloadbitcoin-e2a47ce08528dfb39c0340145c6977f6afd587f6.tar.xz
refactor: move first run detection to client code
Diffstat (limited to 'src/wallet/wallettool.cpp')
-rw-r--r--src/wallet/wallettool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallettool.cpp b/src/wallet/wallettool.cpp
index b2cb0bf479..50b6c9d29f 100644
--- a/src/wallet/wallettool.cpp
+++ b/src/wallet/wallettool.cpp
@@ -54,8 +54,7 @@ static std::shared_ptr<CWallet> MakeWallet(const std::string& name, const fs::pa
std::shared_ptr<CWallet> wallet_instance{new CWallet(nullptr /* chain */, name, std::move(database)), WalletToolReleaseWallet};
DBErrors load_wallet_ret;
try {
- bool first_run;
- load_wallet_ret = wallet_instance->LoadWallet(first_run);
+ load_wallet_ret = wallet_instance->LoadWallet();
} catch (const std::runtime_error&) {
tfm::format(std::cerr, "Error loading %s. Is wallet being used by another process?\n", name);
return nullptr;