Skip to content

Revert BIP68 temporarily#546

Merged
oskarszoon merged 1 commit into
mainfrom
bugfix/revert-bip68
Mar 3, 2026
Merged

Revert BIP68 temporarily#546
oskarszoon merged 1 commit into
mainfrom
bugfix/revert-bip68

Conversation

@oskarszoon

Copy link
Copy Markdown
Contributor

Reverts #514 , needs a different implementation, massive performance degradation during legacy sync

@github-actions

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

🤖 Claude Code Review

Status: Complete

This PR reverts PR #514 which implemented BIP68 relative locktime validation. The revert is clean and comprehensive.

Analysis:

This is a straightforward revert of BIP68 functionality due to reported performance degradation during legacy sync. The changes are consistent and complete:

  • Removes MedianTimePast field from BlockHeaderMeta struct and serialization
  • Removes GetMedianTimePastForHeights method from blockchain client/interface
  • Removes BIP68 sequence validation logic from transaction validator
  • Removes all BIP68-related tests (559+ lines in validator, 866+ lines in e2e)
  • Removes median time past calculation helper functions
  • Updates protobuf definitions to remove MTP-related messages
  • Removes BIP68 test from Makefile legacy-sync target

No Issues Found

The revert appears complete and safe:

  • No database migration needed (MTP was never stored in DB, only in-memory)
  • Binary serialization format correctly adjusted (capacity calculation reduced by 4 bytes)
  • All references to BIP68 and MTP functionality removed
  • Test suite updated to exclude BIP68 tests
  • No orphaned code or incomplete removals detected

The performance issue mentioned in the PR description justifies the temporary revert while a more efficient implementation is developed.

@sonarqubecloud

sonarqubecloud Bot commented Mar 3, 2026

Copy link
Copy Markdown

@oskarszoon oskarszoon merged commit edd69a1 into main Mar 3, 2026
26 checks passed
@oskarszoon oskarszoon deleted the bugfix/revert-bip68 branch March 3, 2026 10:45
ctnguyen added a commit that referenced this pull request Mar 3, 2026
@ctnguyen ctnguyen mentioned this pull request Mar 3, 2026
ctnguyen added a commit that referenced this pull request Mar 6, 2026
ctnguyen added a commit that referenced this pull request Mar 12, 2026
ctnguyen added a commit that referenced this pull request Mar 31, 2026
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