Menu: remove 'Change restore height'

Restoring the wallet from seed is the preferred UX here. Missing
transactions should be imported using Tools -> Import transaction.
This commit is contained in:
tobtoht
2022-06-23 12:54:01 +02:00
parent 840d6a2b02
commit 08acac91f6
7 changed files with 0 additions and 115 deletions
-18
View File
@@ -199,24 +199,6 @@ void AppContext::onTorSettingsChanged() {
qDebug() << "Changed privacyLevel to " << privacyLevel;
}
void AppContext::onSetRestoreHeight(quint64 height){
auto seedLength = this->wallet->seedLength();
if (seedLength == 14 || seedLength == 16) {
const auto msg = "This wallet has a mnemonic seed with an embedded restore height.";
emit setRestoreHeightError(msg);
return;
}
this->wallet->setWalletCreationHeight(height);
this->wallet->setPassword(this->wallet->getPassword()); // trigger .keys write
// nuke wallet cache
const auto fn = this->wallet->cachePath();
WalletManager::clearWalletCache(fn);
emit customRestoreHeightSet(height);
}
void AppContext::stopTimers() {
m_storeTimer.stop();
}