mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:47:36 +00:00
test: cover BIP30 for non coinbase txs #36847
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36847
Loading…
Reference in a new issue
No description provided.
Delete branch "test-bip30-non-coinbase"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The BIP30 tests in
feature_block.pyonly cover duplicate coinbase transactions, but the check applies to every transaction in a block.Add coverage for a duplicate non-coinbase transaction:
Kills the following mutant (https://mutanthub.space/mutants/4389):
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
🔵 Suggestion · The non-coinbase BIP30 test misses partially spent transactions
Like the existing coinbase cases, the new single-output fixture cannot distinguish checking every output from checking only output 0, leaving the partially spent BIP30 case uncovered.
Location:
test/functional/feature_block.py:876(head).Review coverage was incomplete.
Reviewed:
404d102878ad· Review report · Previous reportspermalink
Not sure this is important, in fact I think we should completely remove the BIP30 checks during assumevalid (and sigop counting, see https://github.com/bitcoin/bitcoin/issues/36476).
That doesn't necessarily contradict adding new tests for it, but doesn't seem like a priority to me.
I agree that it is not urgent, but I still think it is worth covering as long as the check exists because it affects consensus. Even with that change, nodes running with
-assumevalid=0would still use BIP 30.404d102878tACK. The code exists today, this simply exercises it further.tACK
404d102878. Verified the mutant is killed by timeout.