mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
[31.x] Finalise 31.2 #36661
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!36661
Loading…
Reference in a new issue
No description provided.
Delete branch "finalise_31_2"
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:
f2fe67f586d1aa59ac87b2865e6785809c3d8890Head:
de4a5e34b1a421a4c78873ae657b27d7ab835293Findings
Minor
Select misses error events for send-only sockets (src/util/sock.cpp:217, head)
In the
selectbackend, the exception set is populated only whenRECVis requested. A send-only request therefore cannot produceSock::ERR, unlike the previous implementation and the poll backend, which mapsPOLLERRandPOLLHUPunconditionally. Preserve exception monitoring for sockets with requested I/O. No current caller producing a send-only request was independently confirmed, so production reachability remains unconfirmed.Suggestions
Add regression coverage for the paused-send timeout (src/net.cpp:2064, head)
This adds a disconnect condition based on how long
fPauseSendremains set, but the inspected timeout tests cover handshake and ping timeouts, not the paused-send timer or its reset behavior. Add focused coverage to verify that a sustained pause times out despite recent activity, draining and pausing again starts a fresh interval, and enqueues during one continuous pause do not restart the timer. Mock time can avoid waiting 20 minutes.Test flat-file positions beyond existing width limits (src/flatfile.cpp:48, head)
The changed seek path is intended to handle positions beyond the old positioning limits, but the inspected flat-file tests use short strings and allocations of at most 200 bytes. Add a boundary test that seeks above
INT32_MAXand checks the resultingAutoFileposition, plus aFlatFilePosserialization round trip aboveUINT32_MAX. Seeking beyond EOF can test positioning without writing a multi-gigabyte file.Design and approach
Complete or constrain 64-bit positioning on 32-bit POSIX (src/util/fs_helpers.h:59, head)
On the supported 32-bit Linux build, the non-Windows branches still use
std::fseekandstd::ftell, whoselongoffset and result types remain 32-bit;_FILE_OFFSET_BITS=64widensoff_t, notlong. AFlatFilePosaboveLONG_MAXtherefore cannot be reliably sought or reported through these wrappers. If 64-bit positioning is intended across supported platforms, usefseekoandftellowith 64-bitoff_t; otherwise, document or constrain the platform guarantee. The checked block-file producer is capped at 128 MiB, so production impact above that range is unconfirmed.Review coverage was incomplete.
Review limitations
Full review report
ACK https://github.com/bitcoin/bitcoin/pull/36661/commits/de4a5e34b1a421a4c78873ae657b27d7ab835293
ACK
de4a5e34b1Reviewed all four cherry-picks manually and checked the remaining commits automatically. The differences from upstream are the older socket event names, clock and logging APIs, and keeping the existing rounding arithmetic.
Reproduced and tested ACK
de4a5e34b1ACK
de4a5e34b1