Repository navigation
Conversation
sneurlax
marked this pull request as draft
November 13, 2026 22:50
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## staging #1515 +/- ##
===========================================
+ Coverage 16.11% 16.33% +0.22%
===========================================
Files 1145 1146 +1
Lines 114390 114416 +26
===========================================
+ Hits 18429 18686 +257
+ Misses 95961 95730 -231 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sneurlax
marked this pull request as ready for review
November 14, 2026 03:48
The MWC wallet copied Epic Cash's first-block timestamp (1565370278) under the name mimblewimblecoinFirstBlock. MWC mainnet started on 2019-11-11 (1573462801, the value restore_wallet_view already uses), so the estimate for a freshly created wallet landed about 130k blocks above the actual tip: the initial scan and any later rescan from that height never ran. Wallets restored from a seed were unaffected. Staging already fixed this in 0e56467 with 1573462800. Rebased onto it, this only aligns the value with restore_wallet_view.
Opening Send on an empty MWC wallet asks for a fee estimate. libmwc treats amount == available as send all, retries with the amount minus the required fee and aborts the app on the resulting negative amount (seen on the iOS Simulator as a SIGABRT in mwc_rust_get_tx_fees). There is no fee to estimate without a spendable balance or an amount, so return 0 without calling the native library. The real send still reports insufficient funds.
sneurlax
force-pushed
the
fix/mwc-wallet-correctness
branch
from
November 17, 2026 19:53
5014cb9 to
adcb53e
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.
Summary
Split from #1507 so this correctness fix can be reviewed and merged independently.
Verification
Merge ordering
This touches methods that #1507 moves into the shared Mimblewimble base. If #1507 merges first, translate the two helper calls to
firstBlockTimestampandnativeFee; that integration was built and tested locally.Latest staging refresh (2026-11-17)
Rebased exactly onto
staging1d319093efe5; patch equivalence was confirmed withrange-diff. New head:adcb53e9a20e. Focused verification: 3 tests passed. The GitHub Actions Test workflow completed green on the exact refreshed head, including the full Flutter test job, Linux release bundle, and Windows build-script checks.