mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:44:38 +00:00
[31.x] Backports #36662
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!36662
Loading…
Reference in a new issue
No description provided.
Delete branch "36358_36361"
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?
Backports:
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.Base:
3708efd056e52c7005976b8148f9d1feb722d7daHead:
1bb872a8c83c643adc56eece18b7b0864bc9b91bFindings
Major
Prune request does not remove the stale-fork block file (test/functional/feature_prune_stale_fork.py:30, head)
At height 500, the prune request is clamped to height 212 because pruning retains the last 288 blocks. In
-fastprunemode, block files roll over at 64 KiB, and the small coinbase-only blocks do not fill the file containing the height-2 stale-fork child by height 212. Manual pruning removes only whole files whose last block height is within the prune limit, so the child remains available and the followinggetblockassertion fails before restart. Mine enough blocks for the child's file to become eligible for pruning, or otherwise ensure that file is pruned before asserting the error.Review coverage was incomplete.
Review limitations
Full review report
Ralph found major issues at
1bb872a8c8.Prune request does not remove the stale-fork block file (test/functional/feature_prune_stale_fork.py:30, head)
At height 500, the prune request is clamped to height 212 because pruning retains the last 288 blocks. In
-fastprunemode, block files roll over at 64 KiB, and the small coinbase-only blocks do not fill the file containing the height-2 stale-fork child by height 212. Manual pruning removes only whole files whose last block height is within the prune limit, so the child remains available and the followinggetblockassertion fails before restart. Mine enough blocks for the child's file to become eligible for pruning, or otherwise ensure that file is pruned before asserting the error.Full report
The Ralph finding looks like nothing to me.
ACK
1bb872a8c8Backports are clean.
I think Ralph would maybe be right if the test's chain started from genesis and the fork was at the second block. But that's not the case for this test, as the fork happens at block 201.
C'mon Ralph...
ACK
1bb872a8c8