Repository navigation
Check absolute nLockTime finality against Bitcoin Core - #287
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
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. |
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.3IsFinalTxsemantics: height versus BIP113 parent-MTP comparison, strict equality boundary, and the all-final-sequence escape. Missing relevant chain context returnsUnsupported; 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
NonFinaland 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 locallyFinal, 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 (SHA25617ffe9b1cd6b434cf7437c108f33db93e92247d54752c11653349151b4d4f5f2). 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; focusedcargo 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::.