aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-01-21 14:48:08 -0600
committerluigi1111 <luigi1111w@gmail.com>2019-01-21 14:48:08 -0600
commit90b0f4fa559cc36f42ef515f6113cdb5c4a56944 (patch)
treeb6037c4544c6537e314813f330e1fe9c5549b936
parentf6ba2e28cbffdda51b7899f9e32e9edf0c820e7b (diff)
parent77cd521ffeafa95bc2a49fd77a03cf6fa6688806 (diff)
downloadmonzero-gui-90b0f4fa559cc36f42ef515f6113cdb5c4a56944.tar.gz
monzero-gui-90b0f4fa559cc36f42ef515f6113cdb5c4a56944.tar.xz
monzero-gui-90b0f4fa559cc36f42ef515f6113cdb5c4a56944.zip
Merge pull request #1878
77cd521 Wizard/Device: set estimated restore height if none is provided (selsta)
-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 228d7bd0..d812ecdd 100644
--- a/main.qml
+++ b/main.qml
@@ -233,9 +233,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 {