What changed, and why it matters
This commit changes a single constant used to estimate the first block time for the Mimblewimblecoin (MWC) cryptocurrency when restoring a wallet from a date. The old value was too early, which could cause wallet restores to scan blocks that did not exist yet. The new value is later and more accurate. There is no direct security vulnerability here; it is a correctness fix that may affect user experience and restore accuracy.
No security action required. Treat as a normal bug fix. If desired, verify the new timestamp 1573462800 matches MWC's actual genesis or first block time against an authoritative source.
Security signals we found
No security-relevant signals in the diff or commit metadata.
Change is a constant correction in wallet restore height estimation.
Evidence from the diff
The patch updates mimblewimblecoinFirstBlock from 1565370278 to 1573462800 in _calculateRestoreHeightFrom. This constant is subtracted from the user-supplied restore date to estimate a blockchain height to start scanning. An incorrect first-block timestamp can lead to negative or underestimated restore heights, potentially causing the wallet to start scanning from an invalid or unnecessarily early point. The change is a one-line constant correction with no exploit path.
Changed components
lib/wallets/wallet/impl/mimblewimblecoin_wallet.dartInspect captured patch +1 / −1
diff --git a/lib/wallets/wallet/impl/mimblewimblecoin_wallet.dart b/lib/wallets/wallet/impl/mimblewimblecoin_wallet.dart
index d31be37..02797e4 100644
--- a/lib/wallets/wallet/impl/mimblewimblecoin_wallet.dart
+++ b/lib/wallets/wallet/impl/mimblewimblecoin_wallet.dart
@@ -834,7 +834,7 @@ class MimblewimblecoinWallet extends Bip39Wallet {
int _calculateRestoreHeightFrom({required DateTime date}) {
final int secondsSinceEpoch = date.millisecondsSinceEpoch ~/ 1000;
- const int mimblewimblecoinFirstBlock = 1565370278;
+ const int mimblewimblecoinFirstBlock = 1573462800;
const double overestimateSecondsPerBlock = 61;
final int chosenSeconds = secondsSinceEpoch - mimblewimblecoinFirstBlock;
final int approximateHeight = chosenSeconds ~/ overestimateSecondsPerBlock;
Why this scored 17/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.