Skip to content

[32.x] More Backports - #36427

Merged
fanquake merged 11 commits into
bitcoin:32.xfrom
fanquake:32_0_rc4_final_backports
Oct 10, 2026
Merged

fanquake merged 11 commits into
bitcoin:32.xfrom
fanquake:32_0_rc4_final_backports

Conversation

@fanquake fanquake added this to the 32.0 milestone Oct 3, 2026
@DrahtBot

DrahtBot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

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.

Type Reviewers
ACK andrewtoth
Stale ACK willcl-ark, sedited, marcofleon

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Rewrite check_pipelined_data_is_throttled() to stop inferring server
behavior from client-side send() results.

Github-Pull: bitcoin#36303
Rebased-From: 493850c
Make sure we send out all three connections when intiating a private broadcast.

Use MarkResolved instead of Remove to mark a tx as having been received back or mempool-conflicted.
Prevent additional stale retry connections by tracking disconnects and explicitly granting new connections with TryGrantRetry.

Github-Pull: bitcoin#36277
Rebased-From: dc95a70
This method is no longer called in production.

Github-Pull: bitcoin#36277
Rebased-From: 00c1b52
@andrewtoth

andrewtoth commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

@fanquake it doesn't seem like #36277 was added here.

Edit: Weird didn't see the last 2 commits until just now, and also received the notification email now but it was backdated. Must be something with github.

MarcoFalke added 2 commits October 6, 2026 14:46
The networks were left around for the next run, which may cause issues
when they are changed in a future CI change.

Fix it by using one network per container, and by cleaning it up after a
successful run.

This also allows to harden the script by removing the check=False on
creation.

On a failed run, networks will remain dangling and need manual pruning
(same behaviour as before).

Github-Pull: bitcoin#36435
Rebased-From: fae564e
This avoids collisions between concurrently running containerized CI jobs.

Github-Pull: bitcoin#36435
Rebased-From: fa966fd

@sedited sedited left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a323326

@marcofleon marcofleon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a323326

@andrewtoth andrewtoth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a323326

@willcl-ark

Copy link
Copy Markdown
Member

Looks OK.

Why the commit message change in b2c6f6f though? Assume it's an editor accident, and not a big deal tbh.

--- /tmp/commit1        2026-10-08 10:41:30.369567197 +0100
+++ /tmp/commit2        2026-10-08 10:41:30.373567171 +0100
@@ -4,6 +4,7 @@
 it down to Sock::Wait. On systems without poll() (e.g. macOS and the
 BSDs) the wait is done with select(), which fails with EINVAL for
 timeouts above 10^8 seconds on macOS. So since the libevent removal in
+#34342, `bitcoin-cli -rpcclienttimeout=0 ...` fails on macOS with
 "Could not connect to the server". With poll(), the millisecond count
 is narrowed to int, so large values can wrap as well.

@@ -13,7 +14,3 @@

 Add a bitcoin-cli call with -rpcclienttimeout=0 to
 interface_bitcoin_cli.py. It fails on macOS without the cap.
-
-Github-Pull: #36340
-Rebased-From: 8dcf90a9b320c791f49f78de3b1094f54068e339
-

@willcl-ark willcl-ark left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a323326

happy to re-ack with fixed commit message, if it's deemed important-enough to fix :)

kriss39 and others added 2 commits October 8, 2026 06:45
bitcoin-cli turns -rpcclienttimeout=0 into a 5 year timeout and passes
it down to Sock::Wait. On systems without poll() (e.g. macOS and the
BSDs) the wait is done with select(), which fails with EINVAL for
timeouts above 10^8 seconds on macOS. So since the libevent removal in
34342, `bitcoin-cli -rpcclienttimeout=0 ...` fails on macOS with
"Could not connect to the server". With poll(), the millisecond count
is narrowed to int, so large values can wrap as well.

Cap the timeout at INT_MAX milliseconds (about 24.8 days), which fits
poll() and stays below the 31 days that POSIX requires select() to
accept.

Add a bitcoin-cli call with -rpcclienttimeout=0 to
interface_bitcoin_cli.py. It fails on macOS without the cap.

Github-Pull: bitcoin#36340
Rebased-From: 8dcf90a
Changes:

* Extract a shared get_process_group_kwargs() to avoid repeating it
* In sigterm_node, use node.wait_until_stopped() instead of the manual
  assert_equal(0, node.process.wait())
* Extract sigterm_node; can be reviewed via the git options
  --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
* Use self.sigterm_node(node)+get_process_group_kwargs() over
  node.kill_process() for a graceful shutdown to avoid complaints from
  the llvm-symbolizer about a broken pipe when it resolves UBSAN
  suppressions during a process kill

Github-Pull: bitcoin#36392
Rebased-From: fad49a7
@fanquake
fanquake force-pushed the 32_0_rc4_final_backports branch from a323326 to 1795af9 Compare October 8, 2026 10:46

@willcl-ark willcl-ark left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reACK d66ea38

only commit message fixed

@sedited sedited left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-ACK d66ea38

@marcofleon

Copy link
Copy Markdown
Contributor

re-ACK d66ea38

@andrewtoth

Copy link
Copy Markdown
Contributor

ACK 101719c

@fanquake
fanquake merged commit fce3897 into bitcoin:32.x Oct 10, 2026
29 checks passed
@fanquake
fanquake deleted the 32_0_rc4_final_backports branch October 10, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants