Repository navigation
main to staging - #103
Merged
Merged
main to staging#103
Conversation
Codecov Report
@@ Coverage Diff @@
## staging #103 +/- ##
===========================================
- Coverage 35.40% 30.08% -5.33%
===========================================
Files 105 107 +2
Lines 14390 17065 +2675
===========================================
+ Hits 5095 5134 +39
- Misses 9295 11931 +2636
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This was referenced Nov 1, 2026
sneurlax
added a commit
to sneurlax/stack_wallet
that referenced
this pull request
Nov 10, 2026
refresh() in the Monero, Wownero and Salvium wallets acquires refreshMutex and released it only on the success path. Anything thrown after the acquire (the Tor and clearnet mismatch check, or wallet being null because open() failed) left the lock held for the rest of the session. Later refreshes returned early on the isLocked check and recover()'s refreshMutex.protect waited forever, which is the stuck rescan dialog in stack-wallet cypherstack#103. The body now runs under refreshMutex.protect, which releases in a finally and rethrows, the same way the other wallets and recover() in these files already use it. That makes the release-at-100% workaround in onSyncingUpdate redundant, so it is gone from all three wallets. In the Monero wallet highestPercentCached is reset on both sides of rescanBlockchain: before it, so a throw leaves the guard at zero, and after it, so a progress reading from before the rescan cannot be ordered after the reset. Wownero and Salvium call rescanBlockchain unawaited, so the second reset would change nothing there and they keep their order. This is the wallet-layer part of the closed PR cypherstack#1490, taken on its own.
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.