store is optional during close and defaults to true; except during descruction

This commit is contained in:
m2049r 2017-09-23 00:52:09 +02:00
parent 1f9058187c
commit 6ee1116d75
5 changed files with 16 additions and 14 deletions

View file

@ -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 {