mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Wizard/Device: set estimated restore height if none is provided
requires #5034
This commit is contained in:
parent
97de72b27d
commit
77cd521ffe
2 changed files with 1 additions and 3 deletions
3
main.qml
3
main.qml
|
@ -228,9 +228,6 @@ ApplicationWindow {
|
||||||
if (typeof wizard.m_wallet !== 'undefined') {
|
if (typeof wizard.m_wallet !== 'undefined') {
|
||||||
console.log("using wizard wallet")
|
console.log("using wizard wallet")
|
||||||
//Set restoreHeight
|
//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){
|
if(persistentSettings.restore_height > 0){
|
||||||
// We store restore height in own variable for performance reasons.
|
// We store restore height in own variable for performance reasons.
|
||||||
restoreHeight = persistentSettings.restore_height
|
restoreHeight = persistentSettings.restore_height
|
||||||
|
|
|
@ -96,6 +96,7 @@ ColumnLayout {
|
||||||
var success = wallet.status === Wallet.Status_Ok;
|
var success = wallet.status === Wallet.Status_Ok;
|
||||||
if (success) {
|
if (success) {
|
||||||
m_wallet = wallet;
|
m_wallet = wallet;
|
||||||
|
settingsObject['restore_height'] = m_wallet.walletCreationHeight;
|
||||||
settingsObject['is_recovering_from_device'] = true;
|
settingsObject['is_recovering_from_device'] = true;
|
||||||
settingsObject['tmp_wallet_filename'] = tmp_wallet_filename
|
settingsObject['tmp_wallet_filename'] = tmp_wallet_filename
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue