aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet_manager.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-09-25 16:38:14 +0200
committerRiccardo Spagni <ric@spagni.net>2017-09-25 16:38:14 +0200
commit40d213154bf42e95ac5b67087e31c65babac31ef (patch)
treef262462eafb7cef30a47cc3b513d42f344d0e19d /src/wallet/api/wallet_manager.cpp
parentMerge pull request #2257 (diff)
parentstore is optional during close and defaults to true; except during descruction (diff)
downloadmonero-40d213154bf42e95ac5b67087e31c65babac31ef.tar.xz
Merge pull request #2289
6ee1116d store is optional during close and defaults to true; except during descruction (m2049r)
Diffstat (limited to 'src/wallet/api/wallet_manager.cpp')
-rw-r--r--src/wallet/api/wallet_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp
index a23533530..4b988a417 100644
--- a/src/wallet/api/wallet_manager.cpp
+++ b/src/wallet/api/wallet_manager.cpp
@@ -102,10 +102,10 @@ Wallet *WalletManagerImpl::createWalletFromKeys(const std::string &path,
return wallet;
}
-bool WalletManagerImpl::closeWallet(Wallet *wallet)
+bool WalletManagerImpl::closeWallet(Wallet *wallet, bool store)
{
WalletImpl * wallet_ = dynamic_cast<WalletImpl*>(wallet);
- bool result = wallet_->close();
+ bool result = wallet_->close(store);
if (!result) {
m_errorString = wallet_->errorString();
} else {