mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
Revert "Ensure ringdb is written after wallet creation"
This reverts commit d52df3b94e.
Regression: must ensure wallet is stored before opening it again.
This commit is contained in:
@@ -279,8 +279,7 @@ void WindowManager::tryCreateWallet(Seed seed, const QString &path, const QStrin
|
|||||||
wallet->setCacheAttribute("feather.seed", seed.mnemonic.join(" "));
|
wallet->setCacheAttribute("feather.seed", seed.mnemonic.join(" "));
|
||||||
wallet->setCacheAttribute("feather.seedoffset", seedOffset);
|
wallet->setCacheAttribute("feather.seedoffset", seedOffset);
|
||||||
|
|
||||||
wallet->deleteLater();
|
this->onWalletOpened(wallet);
|
||||||
this->tryOpenWallet(path, password);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowManager::tryCreateWalletFromDevice(const QString &path, const QString &password, const QString &deviceName, int restoreHeight)
|
void WindowManager::tryCreateWalletFromDevice(const QString &path, const QString &password, const QString &deviceName, int restoreHeight)
|
||||||
|
|||||||
@@ -1413,18 +1413,18 @@ Wallet::~Wallet()
|
|||||||
|
|
||||||
m_scheduler.shutdownWaitForFinished();
|
m_scheduler.shutdownWaitForFinished();
|
||||||
|
|
||||||
if (status() == Status_Critical || status() == Status_BadPassword)
|
//Monero::WalletManagerFactory::getWalletManager()->closeWallet(m_walletImpl);
|
||||||
|
if(status() == Status_Critical || status() == Status_BadPassword)
|
||||||
qDebug("Not storing wallet cache");
|
qDebug("Not storing wallet cache");
|
||||||
else if (m_walletImpl->store(""))
|
else if( m_walletImpl->store(""))
|
||||||
qDebug("Wallet cache stored successfully");
|
qDebug("Wallet cache stored successfully");
|
||||||
else
|
else
|
||||||
qDebug("Error storing wallet cache");
|
qDebug("Error storing wallet cache");
|
||||||
|
|
||||||
delete m_walletImpl;
|
delete m_walletImpl;
|
||||||
m_walletImpl = nullptr;
|
m_walletImpl = nullptr;
|
||||||
delete m_walletListener;
|
delete m_walletListener;
|
||||||
m_walletListener = nullptr;
|
m_walletListener = NULL;
|
||||||
qDebug("~Wallet: Closed");
|
qDebug("m_walletImpl deleted");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Wallet::startRefreshThread()
|
void Wallet::startRefreshThread()
|
||||||
|
|||||||
Reference in New Issue
Block a user