aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-01-02 10:12:21 +0100
committerselsta <selsta@sent.at>2019-01-02 10:12:21 +0100
commit77cd521ffeafa95bc2a49fd77a03cf6fa6688806 (patch)
tree6de63d339e4b548ced7311fab89948ba71a050ee
parent97de72b27d56e7869c5e3c13ed3a15db033d0043 (diff)
downloadmonzero-gui-77cd521ffeafa95bc2a49fd77a03cf6fa6688806.tar.gz
monzero-gui-77cd521ffeafa95bc2a49fd77a03cf6fa6688806.tar.xz
monzero-gui-77cd521ffeafa95bc2a49fd77a03cf6fa6688806.zip
Wizard/Device: set estimated restore height if none is provided
requires #5034
-rw-r--r--main.qml3
-rw-r--r--wizard/WizardCreateWalletFromDevice.qml1
2 files changed, 1 insertions, 3 deletions
diff --git a/main.qml b/main.qml
index d23cb5e5..34732d73 100644
--- a/main.qml
+++ b/main.qml
@@ -228,9 +228,6 @@ ApplicationWindow {
if (typeof wizard.m_wallet !== 'undefined') {
console.log("using wizard wallet")
//Set restoreHeight
- if (persistentSettings.restore_height == 0 && persistentSettings.is_recovering_from_device && walletManager.localDaemonSynced()) {
- persistentSettings.restore_height = walletManager.blockchainHeight() - 1;
- }
if(persistentSettings.restore_height > 0){
// We store restore height in own variable for performance reasons.
restoreHeight = persistentSettings.restore_height
diff --git a/wizard/WizardCreateWalletFromDevice.qml b/wizard/WizardCreateWalletFromDevice.qml
index ae63e2a0..118ef125 100644
--- a/wizard/WizardCreateWalletFromDevice.qml
+++ b/wizard/WizardCreateWalletFromDevice.qml
@@ -96,6 +96,7 @@ ColumnLayout {
var success = wallet.status === Wallet.Status_Ok;
if (success) {
m_wallet = wallet;
+ settingsObject['restore_height'] = m_wallet.walletCreationHeight;
settingsObject['is_recovering_from_device'] = true;
settingsObject['tmp_wallet_filename'] = tmp_wallet_filename
} else {