aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet_manager.cpp
diff options
context:
space:
mode:
authorm2049r <30435443+m2049r@users.noreply.github.com>2017-09-23 00:52:09 +0200
committerm2049r <30435443+m2049r@users.noreply.github.com>2017-09-23 00:52:09 +0200
commit6ee1116d759b6d760490574978964b5e55ca591d (patch)
treea245cc285def6d36e3bd5714d965da557536cf8e /src/wallet/api/wallet_manager.cpp
parentMerge pull request #2496 (diff)
downloadmonero-6ee1116d759b6d760490574978964b5e55ca591d.tar.xz
store is optional during close and defaults to true; except during descruction
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 {