-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Utils, SettingsInfo, WizardCreateDevice1: use minimum value for restore height of Ledger and Trezor #3573
base: master
Are you sure you want to change the base?
Conversation
1573afa
to
b057428
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- As far as I can see this ignores Testnet / Stagnet, we would only want this on Mainnet
- IMO if someone enters a specific block height we should also set this block height. Only if someone keeps the restore height empty then we should use this minimum value for Ledger / Trezor instead of 0.
Fixed
I disagree. Why should we let users sync unnecessary blocks from 2014-04 to 2018-03/2018-11? Just for the sake of respecting the restore height entered by the user? Why would a user want to sync 4 years of unnecessary blocks? |
I personally dislike software that overwrites my entry.
I can imagine that someone converts their existing paper wallet monero seed into a Ledger seed. In this case it is possible that they have to sync earlier than "2018-03-04". Also some used Ledger before it was publicly available, including me. I don't know if my first transaction was before I will also ask @dEBRUYNE-1 as he had this idea initially. |
The coded restore height should arguably only be used if the user enters |
Made the following changes: WizardCreateDevice:
SettingsInfo
|
…re height of Ledger and Trezor
There is still a bug to be fixed (I think it was already present before this PR): if you set restore height = 0 on WizardCreateDevice1.qml (I tested on Trezor only), the restore height is set to current restore height. |
I think that's intentional. Will have to look at the code again but we want to set it to 1 if someone enters 0. |
but if you enter restore height = 0 on SettingsInfo, it respects the user input |
That's most likely a bug then. |
I observed this behavior only when you restore a hardware wallet (Trezor). If you restore a normal wallet (on Wizard) or change the restore height on SettingsInfo, it respects the restore height = 0. |
Yes, that's intentional. Restoring height 0 with hw device sets it to approximately current height. |
But it's not consistent. And it's really strange, because "0" was the default value of restore height field. Now that the default value of restore height field is blank, don't you think we should change it to respect the "0" entered by the user? |
Use minimum restore height values for each device model, according to when they started supporting Monero (see monero-project/monero#6797).
This minimum value for restore height is only set if the user doesn't set a restore height.
Ledger Nano S support:
Trezor Model T support: