Repository navigation
Restore wallet payments automatically after reconnecting - #13
Merged
Merged
Conversation
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.
After reconnecting, Mountaintops showed only addresses the user had manually refreshed. That made a saved payment appear to be missing. Connecting now restores available retained payments from the BRC-100 wallet, with the existing source, spend-state and canonical-proof checks, before a separate refresh discovers new deposits.
Known-output recovery never queries an address or creates a paid record, including after expiration. Partial discovery now says how many addresses were checked; an unchecked address does not show a misleading zero. The app remains client-only, and activity remains ephemeral. Import preparation, receiving expiration and grouped permissions are unchanged.
Validation: 56 tests, lint and production build; fresh-instance active/expired recovery without address lookup or wallet transactions, and unknown spend state rejected. The real-SDK UI fixture restores both payment rows on connect, retains both after a single-address refresh with a clear 1-of-2 label, and performs full refresh without a new wallet action. The earlier real payment/import round trip is confirmed; no further paid test is needed for this display correction.