Skip to content

MvP-4345 series#421

Open
ctnguyen wants to merge 8 commits intobsv-blockchain:mainfrom
ctnguyen:Feature/MvP-4345_series
Open

MvP-4345 series#421
ctnguyen wants to merge 8 commits intobsv-blockchain:mainfrom
ctnguyen:Feature/MvP-4345_series

Conversation

@ctnguyen
Copy link
Collaborator

This is the group series of PR : MvP-4434 MvP4441 MvP 4443, all items inside the larger issue https://github.com/bitcoin-sv/teranode/issues/4345. Each commit resolve one issue item

@github-actions
Copy link
Contributor

github-actions bot commented Feb 25, 2026

🤖 Claude Code Review

Status: Complete


This PR implements multiple Bitcoin SV consensus rules aligned with the C++ bitcoin-sv implementation. The changes improve compliance with the BSV protocol specification.

Summary:

The PR adds several consensus and policy checks:

  • Consensus checks (always enforced):
    • Transaction size limits (1MB pre-Genesis, 1GB post-Genesis)
    • Null prevout detection (txid=0 AND index=0xFFFFFFFF)
    • P2SH output ban post-Genesis
    • Pre-Genesis sigops limit (20,000)
  • Policy checks (mempool only):
    • Enhanced sigops counting with P2SH redeem script support
    • MaxCoinsViewCacheSize for DoS protection
    • Refined consolidation transaction logic

Strengths:

  • Comprehensive test coverage for new features
  • Clear separation of consensus vs policy checks
  • Detailed documentation matching C++ implementation
  • Proper Genesis height handling

No critical issues found. The implementation appears sound with appropriate validation logic and good test coverage.

@ctnguyen ctnguyen force-pushed the Feature/MvP-4345_series branch 2 times, most recently from a5f4bf5 to 358b2b2 Compare February 27, 2026 10:55
@ctnguyen ctnguyen force-pushed the Feature/MvP-4345_series branch from 358b2b2 to dff9237 Compare February 27, 2026 11:55
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
72.6% Coverage on New Code (required ≥ 80%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

1 participant