What changed, and why it matters
This is a one-line fix in Monero's wallet software that adjusts how far ahead the wallet tries to 'skip' scanning after a blockchain reorganization (reorg). A reorg happens when the network briefly disagrees on the chain of blocks and then switches to a different version. The change lowers the skip height so the wallet does not skip past blocks it actually needs to re-scan, which could otherwise cause the wallet to miss transactions or show an incorrect balance.
Treat as a correctness fix that may have security-adjacent effects on wallet balance integrity. Users running wallets should upgrade to include this fix, especially those relying on scan-skipping optimizations. Review whether any missed transactions could have occurred on reorg prior to this patch.
Security signals we found
Incorrect scan resume height after blockchain reorg
Potential missed transaction detection
Balance accuracy issue in wallet
Fix is minimal and targeted
Evidence from the diff
In wallet2::handle_reorg(), after detaching the blockchain at the reorg height, the patch now sets m_skip_to_height = std::min(m_skip_to_height, height). Previously, the skip-to height was not clamped to the reorg point, so a wallet that had requested to skip ahead to a future height could retain a skip value higher than the new chain tip/reattachment point. This could lead the wallet to resume scanning above the reorg height, potentially missing outputs, transactions, or balance changes that occurred in the reorganized segment.
Changed components
src/wallet/wallet2.cppwallet2::handle_reorg()m_skip_to_height scan optimizationInspect captured patch +1 / −0
### src/wallet/wallet2.cpp
@@ -4704,6 +4704,7 @@ void wallet2::handle_reorg(uint64_t height, std::map<std::pair<uint64_t, uint64_
error::wallet_internal_error, "Daemon claims reorg below last checkpoint");
detached_blockchain_data dbd = detach_blockchain(height, output_tracker_cache);
+ m_skip_to_height = std::min(m_skip_to_height, height);
if (m_background_syncing && height < m_background_sync_data.start_height)
m_background_sync_data.start_height = height;Why this scored 30/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.