Feat/rescan height - #1382
Draft
sneurlax wants to merge 20 commits into
Draft
Conversation
Co-Authored-By: detherminal <76167420+detherminal@users.noreply.github.com>
these shouldn't exist/happen, but do/can
previously if it had a newline at the beginning it would choke
monero_wallet worked. now monero-wallet works, too there's a frustrating variety of xmr wallet uri schemes: some with underscores, some with dashes
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## staging #1382 +/- ##
===========================================
+ Coverage 4.84% 13.11% +8.27%
===========================================
Files 1092 424 -668
Lines 109141 35637 -73504
===========================================
- Hits 5283 4675 -608
+ Misses 103858 30962 -72896 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The date/block-height control was duplicated three times in the restore options view, once per restore mode, over a single set of controllers. StartHeightPicker replaces all three with one widget and gives each mode its own StartHeightPickerController, so a height chosen in one mode can no longer follow the user into a mode that shows no control. The controller reports a nullable height: null means nothing was chosen, which is distinct from a deliberate height of 0. Salvium now converts the date the user picked rather than one week ago, and Mimblewimblecoin gets the same date to height estimate Epic Cash already had. restore_from_date_picker.dart moves to lib/widgets so the shared widget does not have to import from lib/pages.
The rescan confirmation dialog now offers the start height picker to the coins whose rescan can act on it, and hands the choice to the caller, which persists it before starting the rescan: the wallet info restore height for every coin, plus the native refresh height for Cryptonote wallets and the per-coin restore height that Epic Cash and Mimblewimblecoin reset their last scanned block to. Mimblewimblecoin gains the updateRestoreHeight that Epic Cash already had, without which its rescan would have ignored the height. Coins that cannot apply a start height are not shown the control, and choosing nothing leaves the stored restore height untouched. setRefreshFromBlockHeight becomes a Future so the native height is set before the rescan begins rather than racing it.
A URI's `height=` now fills the visible picker in and stops there: the restore uses whatever the picker reports, so a correction the user makes after pasting is the value that takes effect. A URI whose scheme names a different coin than the page is refused with a message naming that coin, instead of being restored under the page's coin from another chain's recovery material.
Uri.parse throws a FormatException whose source is the string it was given, and FormatException.toString() quotes a window of that source. The redacted branch of the URI parser interpolated the exception and passed it to the logger as well, so a paste the parser choked on -- a label in front of the URI, a stray bracket, a leading space -- wrote the pasted seed or private keys to the console and, at debug log level, to the exportable log file. Log the exception's message alone instead.
sneurlax
force-pushed
the
feat/rescan-height
branch
from
August 25, 2026 17:41
230b247 to
839132d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.