Skip to content

Check absolute nLockTime finality against Bitcoin Core - #287

Merged
RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
adrienlacombe:codex/absolute-finality-core
Oct 22, 2026
Merged

RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
adrienlacombe:codex/absolute-finality-core

Conversation

@adrienlacombe

@adrienlacombe adrienlacombe commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

A Taproot leaf can execute successfully while its spending transaction remains non-final under absolute nLockTime. This adds a host-side preflight for Core v30.3 IsFinalTx semantics: height versus BIP113 parent-MTP comparison, strict equality boundary, and the all-final-sequence escape. Missing relevant chain context returns Unsupported; the result remains separate from BIP68, script, commitment, and full-transaction validation.

The pinned-Core runner reuses three funded CSV commitments with unchanged sequences and a CSV-only leaf. At candidate height 103 and parent MTP 1800049664, two active-locktime transactions are locally NonFinal and Core rejects them under consensus (bad-txns-nonfinal) and default policy (non-final). A future-locked, all-final-sequence control is accepted and mined. The next candidate block is the first eligible height/MTP stage for the other two; both become locally Final, pass policy, and are mined. The report includes complete witnesses, transaction weights, Core provenance and exact diagnostics. Two fresh isolated runs are byte-identical to the stored report (SHA256 17ffe9b1cd6b434cf7437c108f33db93e92247d54752c11653349151b4d4f5f2). CI now reruns this comparison.

Validation: python3 tools/kb.py validate (135 records, 428 configurations); python3 -m unittest discover -s tools -p 'test_*.py' (57 passed); cargo fmt --all -- --check; focused cargo test --locked --lib absolute_finality::tests (4 passed). The broad non-field Rust suite also passed: CARGO_PROFILE_TEST_OPT_LEVEL=1 cargo test --locked -- --skip fields::.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T14:56:19.262743Z a982d8a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Contributor

Reviewed the strict height/MTP inequality, all-final-sequence bypass, missing-context result, transaction identity checks and funded Core boundaries. Four focused Rust tests, three offline report tests and seven shared CSV harness tests passed locally. The PR's pinned Core CI comparison passed. A fresh local Darwin archive failed the existing checksum check and was not executed. Approved for integration via #289, with the Core source/fixtures unchanged.

@RobinLinus
RobinLinus merged commit db057c9 into solving-bitcoin:main Oct 22, 2026
3 checks passed
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