Skip to content

Fix CMPCTBLOCK handler scope mismatch in net_processing.cpp#3

Merged
packetloss404 merged 6 commits intomainfrom
claude/check-upgrade-progress-qRAxn
Jan 26, 2026
Merged

Fix CMPCTBLOCK handler scope mismatch in net_processing.cpp#3
packetloss404 merged 6 commits intomainfrom
claude/check-upgrade-progress-qRAxn

Conversation

@packetloss404
Copy link
Owner

  • Move variable declarations (fProcessBLOCKTXN, blockTxnMsg,
    fRevertToHeaderProcessing, pblock, fBlockReconstructed) outside the
    LOCK(cs_main) scope so they remain accessible after the lock is released
  • Add missing closing brace for LOCK(cs_main) scope
  • Fix whitespace on empty line (remove stray tabs)
  • Update comments to clarify which scope each closing brace belongs to

This completes the partial merge conflict resolution from commit bcb9aed.

- Move variable declarations (fProcessBLOCKTXN, blockTxnMsg,
  fRevertToHeaderProcessing, pblock, fBlockReconstructed) outside the
  LOCK(cs_main) scope so they remain accessible after the lock is released
- Add missing closing brace for LOCK(cs_main) scope
- Fix whitespace on empty line (remove stray tabs)
- Update comments to clarify which scope each closing brace belongs to

This completes the partial merge conflict resolution from commit bcb9aed.
Non-consensus security improvements:

1. Update miniupnpc 2.0.20180203 -> 2.2.2
   - Fixes infinite loop vulnerability (local network DoS)
   - New patch: dont_leak_info.patch (reduces User-Agent fingerprinting)

2. Add mutated blocks protection (hindered block propagation fix)
   - MarkBlockAsReceived() now accepts optional from_peer parameter
   - Only clears download state if peer matches the original requester
   - Prevents malicious peers from interfering with block relay

These are P2P/networking layer fixes only - no consensus changes.
- Document all backported security fixes (CVE-2023-33297, CVE-2024-35202,
  mutated blocks fix, miniupnpc update)
- Update description to mention 0.21.4 security parity
- Update credits section
- Build on macos-13 runner
- Install dependencies via Homebrew (Qt5, Boost, OpenSSL, BerkeleyDB4)
- Produce defcoin-macos-x64 artifact with all binaries
- Completes cross-platform CI: Linux, Windows, macOS
…21.3)

- Add context menu option to rebroadcast unconfirmed transactions
- Useful for stuck transactions that haven't propagated to the network
- Only enabled for unconfirmed, non-abandoned, non-coinbase transactions

Changes:
- interfaces/wallet.h: Add transactionCanBeRebroadcast() and rebroadcastTransaction()
- interfaces/wallet.cpp: Implement wallet interface methods using SubmitMemoryPoolAndRelay
- qt/transactionview.h: Add rebroadcastAction and rebroadcastTx() slot
- qt/transactionview.cpp: Add menu action, connect slot, implement rebroadcast logic
- Add export button to console tab to save console history to a text file
- Add node uptime display to Information tab (updates every second)
- Add average peer ping display to Network section in Information tab
- Reorganize Information tab rows to accommodate new fields
@packetloss404 packetloss404 merged commit 403c64e into main Jan 26, 2026
0 of 3 checks passed
@packetloss404 packetloss404 deleted the claude/check-upgrade-progress-qRAxn branch January 26, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants