mirror of
https://github.com/monero-project/monero.git
synced 2025-05-19 22:30:30 -04:00
store is optional during close and defaults to true; except during descruction
This commit is contained in:
parent
1f9058187c
commit
6ee1116d75
5 changed files with 16 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue