Skip to content

http: throttle per-connection reads while a request is in flight - #36123

Merged
sedited merged 1 commit into
bitcoin:masterfrom
pinheadmz:http-no-busy-read
Sep 5, 2026
Merged

sedited merged 1 commit into
bitcoin:masterfrom
pinheadmz:http-no-busy-read

Conversation

@pinheadmz

Copy link
Copy Markdown
Member

This patches a memory exhaustion scenario found while auditing the new http server with kimi-k3. A shallow version of this scenario was addressed in #35735 (See #35735 (comment) and #35735 (comment)) but a OOM vector still remained.

On master when the sever is busy handling a request from a client, it will still read data from that client and "queue up" the next request. In #35735 we handled the scenario where that additional incoming data was an invalid HTTP request by not attempting to parse the data. However, we didn't add a size limit.

A misbehaving client could block its request queue with something like waitforblock and then flood the server with nonsense data without any limit.

The solution in this patch is to not even read from the socket at all if we are busy with a request. Similar to the intent of #35735, the kernel will buffer incoming data until backpressure kicks in and the TCP window drops to 0.

If unaddressed, the attack vector is still limited to authenticated clients: unauthenticated REST requests don't block for very long, so the server should be able to drain the receive buffer.

@DrahtBot

DrahtBot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36123.

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK frankomosh, hodlinator, jeanpablojp, winterrdog, sedited

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

LLM Linter (✨ experimental)

Possible places where comparison-specific test macros should replace generic comparisons:

  • test/functional/interface_http.py assert sent <= len(flood) * 10, (...) -> prefer assert_greater_than_or_equal(len(flood) * 10, sent) for a comparison-specific helper.

2026-09-04 17:46:40

@pinheadmz

Copy link
Copy Markdown
Member Author

Requesting review from @frankomosh and @winterrdog who helped address the initial issue

@pinheadmz

Copy link
Copy Markdown
Member Author

Trying another approach to de-flake-ify the test

Comment thread test/functional/interface_http.py Outdated
sent = 0
while True:
try:
sent += conn.conn.sock.send(flood)

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.

Since we are going through the trouble of actually creating a well formatted request, we might as well not garble the bytes:

Suggested change
sent += conn.conn.sock.send(flood)
sent += conn.conn.sock.send(flood[sent % len(flood):])

Comment thread test/functional/interface_http.py Outdated
# The server is still reading
stuck_since = None
self.log.debug(f"sent: {sent}")
assert sent <= len(flood), (

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.

Given the CI failures on Windows (https://github.com/bitcoin/bitcoin/actions/runs/33342301034/job/99340016146?pr=36123#step:14:1050), I think Windows has a differently sized TCP window (or possibly still buffers data on the client end?). Doubling the threshold fixed it for me during local testing. Maybe safer to go 10x.

Suggested change
assert sent <= len(flood), (
assert sent <= len(flood) * 2, (

# one full request.
stuck_since = None
sent = 0
while True:

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.

Would be good to set a bound on this loop, just in case it prevents the test from completing like in this Mac run: https://github.com/bitcoin/bitcoin/actions/runs/33342301034/job/99340016279?pr=36123

Something like:

--- a/test/functional/interface_http.py
+++ b/test/functional/interface_http.py
@@ -718,6 +718,7 @@ class HTTPBasicsTest (BitcoinTestFramework):
         # one full request.
         stuck_since = None
         sent = 0
+        start = time.time()
         while True:
             try:
                 sent += conn.conn.sock.send(flood)
@@ -740,6 +741,9 @@ class HTTPBasicsTest (BitcoinTestFramework):
                     # After 5 seconds of no progress we assume the server is
                     # behaving appropriately.
                     break
+            duration = time.time() - start
+            assert duration < 60 * self.options.timeout_factor, \
+                f"Failed to prove appropriate behavior after {duration:.0f} seconds."

         self.log.info(f"Pipelined flood stalled after {sent} bytes; no progress for 5s")

@pinheadmz

Copy link
Copy Markdown
Member Author

push to 3e259fc:

Took all suggestions from @hodlinator review, improving test and hopefully passing CI on windows. I reproduced the failed test and the fix on my own native windows machine. Still confused about the runaway macos test though since I wrote and tested the patch originally on macos!

@winterrdog winterrdog 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.

Concept ACK

I like the idea of moving this kind of hard work away from the application layer, and then delegating it to the OS at the transport layer (usually the OS has handled a lot of strange edge cases over the years)

Will provide more review

@pinheadmz

Copy link
Copy Markdown
Member Author

push to 782d195

Try again to pass the test on all platforms. It now exits in three possible places during the blocked-flood:

  • ~3 GB read into memory by the server (FAIL)
  • The server is reading/draining data from the buffer for 60 seconds (FAIL)
  • Neither of the above occur AND 5 seconds pass with the server blocking (PASS)

@jeanpablojp jeanpablojp 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.

Concept ACK

With small pipelined requests m_recv_buffer takes in more each tick than it clears, since Receive() reads up to 64 KiB while TryReadRequest consumes at most one request. With -rest on, 16 connections with no credentials at all took the node from 46 MB to about 3 GB in a minute at the default -rpcmaxconnections, same as without this patch, so this patch didn't introduce it. Since REST takes no auth, the vector isn't limited to authenticated clients.

Does it make sense to cover that here, or is it better as a follow-up? Happy to open one.

Comment thread src/httpserver.cpp Outdated
// in the kernel socket buffer, which applies TCP backpressure to the
// sender, instead of accumulating without bound in m_recv_buffer.
// Only one request per connection is ever in flight.
continue;

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.

One side effect of the skip is that the socket is no longer in the set the loop waits on, so nothing wakes it for that connection. On a keep-alive connection the median per request went from 0.14 ms without the patch to 53 ms here. The peer's FIN also stops showing up, so a client that closes mid-request ends up holding its connection slot for as long as the request runs.

net.cpp gates the same skip on a size threshold instead. Not a drop-in here, since TryReadRequest only runs for sockets left in the wait set, but worth a look in that direction?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Interesting, could you share any code you used to measure the connection? I'll look into gating it by size

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.

Sure, this is the latency one.

import base64, http.client, statistics, time
auth = base64.b64encode(b"user:pass").decode()
hdr = {"Authorization": "Basic " + auth}
c = http.client.HTTPConnection("127.0.0.1", 18443)
lat = []
for _ in range(20):
    t0 = time.perf_counter()
    c.request("POST", "/", '{"method":"getblockcount"}', hdr)
    r = c.getresponse()
    assert r.status == 200, r.status
    r.read()
    lat.append((time.perf_counter() - t0) * 1000)
print(statistics.median(lat))

Median comes out at 0.5 ms on the merge base and 51 ms here. The 0.14 above was the same measurement over a raw socket, without http.client's overhead. The FIN and slot side takes a bit more setup, happy to paste that one too if you want.

On the macOS job, I don't think the test is what hangs it. rpc_blockchain.py goes from 39 s to 108 s here and rpc_rawtransaction.py from 8 s to 18 s, which is the 50 ms landing on every call, since AuthServiceProxy holds one connection open. Your fork run had --filter=interface, so it would not have shown that.

@winterrdog winterrdog Sep 1, 2026 •

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.

look into gating it by size

i've always wondered why we don't cap the size of the application receive buffer (m_recv_buffer) and then let the rest of the data that doesn’t fit yet stay in the kernel buffers in the meantime.

@pinheadmz any tradeoffs in doing this?

Comment on lines +739 to +747
except BlockingIOError:
# The kernel send buffer is full (EAGAIN).
# That's good, but we still need to determine if we are
# feeling backpressure from the server or the client-side buffer.
if stuck_since is None:
stuck_since = time.monotonic()
elif time.monotonic() - stuck_since > STALL_TIMEOUT:
# No progress: the server has stopped reading.
break

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.

On EAGAIN the loop spends the five seconds calling send() in a tight spin. Waiting for writability does exactly the same job and drops the cost from 5.8 s to 0.9 s of CPU here, with the same wall time. Needs import select at the top.

Suggested change
except BlockingIOError:
# The kernel send buffer is full (EAGAIN).
# That's good, but we still need to determine if we are
# feeling backpressure from the server or the client-side buffer.
if stuck_since is None:
stuck_since = time.monotonic()
elif time.monotonic() - stuck_since > STALL_TIMEOUT:
# No progress: the server has stopped reading.
break
except BlockingIOError:
# The kernel send buffer is full (EAGAIN).
# That's good, but we still need to determine if we are
# feeling backpressure from the server or the client-side buffer.
if stuck_since is None:
stuck_since = time.monotonic()
remaining = STALL_TIMEOUT - (time.monotonic() - stuck_since)
if remaining <= 0:
# No progress: the server has stopped reading.
break
# Sleep until the socket is writable again instead of spinning.
select.select([], [conn.conn.sock], [], remaining)

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.

same wall-clock time either way, right ?

just wondering if it is worth adding the extra machinery to save some CPU on a test that only runs occasionally. feels like keeping this one simple might be preferable here.

🤔

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.

Some kind of sleep()/yield() could maybe have a similar same effect but require less domain knowledge?
Probably best to avoid a hot loop either way IMO.

@jeanpablojp jeanpablojp Sep 1, 2026 •

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.

Yes, same wall time here, about 7.5 s in all of them. CPU is 5.9 s as is, 1.3 s with a sleep(0.05) and 0.9 s with the select, and the sleep version still fails without the patch.

So @hodlinator is right, that gets most of the way with less machinery. @winterrdog Fair point that it's a small thing, though a one-line sleep is cheap. Sounds good to me.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I played with a short sleep here (50 ms makes sense since thats SELECT_TIMEOUT) I am also hoping that helps with the macos ci job hanging for hours -- I wasn't able to reproduce that locally or even on a narrowed-down CI job on my fork

A client streaming pipelined requests into a busy connection
(or any connection whose replies are slower than the sender) could grow
server memory without limit, up to remote OOM.

Stop selecting RecvEvent for clients whose request is being processed;
pipelined data then backs up in the kernel socket buffer, applying TCP
backpressure to the sender. One request per connection is in flight
at a time.

Functional test streams pipelined submitblock requests into a connection
blocked on waitforblockheight. Unpatched builds continue draining the
socket buffer indefinitely, patched builds will stall.
@pinheadmz

Copy link
Copy Markdown
Member Author

push to 3d1004c

Rewrote the throttling mechanism, using m_req as the major key: if it exists, there is an incomplete request in progress and we should continue to read bytes to finish it. If it's missing, that means we have moved the previous request to a worker and have not read any new bytes yet. In this case we will read from the socket only if m_recv_buffer is currently empty.

In addition, replaced the continue with a 0 event -- so even a busy client still gets passed to TryReadRequest() and what that does is try to parse a request already waiting in m_recv_buffer thus closing the 50ms gap noticed by @jeanpablojp

I haven't explicitly addressed the REST issue yet it's possible this last update rolled it up but I still want to test it out.

@DrahtBot DrahtBot removed the CI failed label Sep 1, 2026
@jeanpablojp

Copy link
Copy Markdown
Contributor

it's possible this last update rolled it up but I still want to test it out

It did, in my tests. Peak m_recv_buffer is 0.1 MB at every request size from 200 B to 1 MiB, where the previous head was 24 MB at 200 B. Sixteen unauthenticated REST connections move RSS by 3 MB over 90 s, against 3.2 GB before.

The 50 ms and the held connection slot are both gone here too.

@frankomosh frankomosh 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 3d1004c

Built a small, deterministic test to check the bug this PR fixes, and ran it on both master and this branch.

  • On master: dispatched one request to a worker and kept it busy, then sent 5 MiB of garbage on the same connection. All 5 MiB ended up in memory (m_recv_buffer), as there is no limit.
  • On this branch, same exact steps as above: the flood stopped growing at exactly 65,536 bytes, which I believe is one Receive() call's worth, and never went past that, no matter how long the worker stayed busy.

Comment thread src/httpserver.cpp
Sock::Event event{0};
if (http_client->ReadyToSend()) {
event = Sock::SendEvent;
} else if (http_client->GetRequest() != nullptr || http_client->ReceiveBufferEmpty()) {

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.

nit: should we have more unit tests, especially covering this half of the condition?

@hodlinator hodlinator 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 3d1004c

Makes sense to only read from the remote HTTP client's socket:

  • While we are parsing a request which may need more data (or is waiting to be dispatched to a worker), or
  • When our receive buffer is empty. If we get any new data it will cause a new request to begin being parsed - unless we hit the m_req_busy guard in HTTPRemoteClient::TryReadRequest() because the client's worker is busy with an earlier request.

This effectively has the reading from the socket pause with the beginning of the next request in the buffer while we are waiting for a client's worker thread to finish processing the previous request.

Reading more eagerly than that may lead to the HTTP server RAM consumption ballooning as pointed out by previous reviewers.

Tested by reverting the httpserver.cpp change and observing the new functional test case failing as a consequence.

Would be nice to include in v32, though it's not critical as the HTTP interface shouldn't be exposed publicly.

Comment on lines +722 to +725
STALL_TIMEOUT = 5
# If send() continues to progress for this many seconds, we assume
# the server is vulnerable to memory exhaustion.
PROGRESS_TIMEOUT = 10

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.

nit: Might make the tests more robust to scale at least the latter of these two constants by self.options.timeout_factor as suggested in #36123 (comment). Maybe with some upper bound so they don't go fully 40x as on CI.

@jeanpablojp

Copy link
Copy Markdown
Contributor

tACK 3d1004c

Retested after the rewrite.

nit: if you push again, the commit message still carries this line.

Stop selecting RecvEvent for clients whose request is being processed

A busy client with an empty buffer now falls into m_recv_buffer.empty() and does get RecvEvent, which is what makes the peer's FIN visible again, so that line reads like the earlier version.

@fanquake fanquake added this to the 32.0 milestone Sep 3, 2026

@winterrdog winterrdog 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.

tACK 3d1004c

successfully built and tested on NetBSD 11.0/g++ 12.5.0/x86_64

@pinheadmz

Copy link
Copy Markdown
Member Author

Pushed draft work to this branch by mistake, but reverted so current reviews are still on HEAD. sorry!

@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 3d1004c

Did not spend too much time with the introduced functional test, but tried this out with a manual test.

@sedited
sedited merged commit f0c839a into bitcoin:master Sep 5, 2026
58 checks passed

@janb84 janb84 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.

Post merge, ACK 3d1004c

The PR fixes a memory exhaustion scenario in a way that is comparable to what NGINX undertakes.

One point of note, this PR does reduce streaming pipelined throughput on an idle node (from 383 to 18.9 requests per second). I could not find any client that would hit this slow path, so I do not think it matters.
In order for the slowdown to happen, the pipelining connection needs to be the node's only traffic. One (non-streaming pipelined ) client brings it back to 600 to 965 requests per second.

As far as I can tell this is a side-effect and not a designed defence. If it is, it needs some more documentation.

@pinheadmz

Copy link
Copy Markdown
Member Author

@janb84

Not sure if I'd call that a side effect, or the intended effect. You're pushing hundreds of requests per second into the server and the new behavior is to only read one buffer-load (65kB) per 50ms-I/O loop tick. All the requests in that load can be handled within one tick, and the next requests have to wait in the socket.

Then my guess is, when you add a second client it wakes up the I/O loop before the 50ms SELECT_TIMEOUT, and the queue gets processed more quickly.

I'd expect that during your 300 request/s trial on master the memory consumption was much higher than on the branch, and that's the exact tradeoff I want to make with this PR.

Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Sep 6, 2026
…e a request is in flight

3d1004cb9b8f27bd328d95b4c7524e878c296d61 http: throttle per-connection reads while a request is in flight (Matthew Zipkin)

Pull request description:

  This patches a memory exhaustion scenario found while auditing the new http server with kimi-k3. A shallow version of this scenario was addressed in #35735 (See  bitcoin/bitcoin#35735 (comment) and bitcoin/bitcoin#35735 (comment)) but a OOM vector still remained.

  On master when the sever is busy handling a request from a client, it will still read data from that client and "queue up" the next request. In #35735 we handled the scenario where that additional incoming data was an invalid HTTP request by not attempting to parse the data. However, we didn't add a size limit.

  A misbehaving client could block its request queue with something like `waitforblock` and then flood the server with nonsense data without any limit.

  The solution in this patch is to not even read from the socket at all if we are busy with a request. Similar to the intent of #35735, the kernel will buffer incoming data until backpressure kicks in and the TCP window drops to 0.

  If unaddressed, the attack vector is still limited to authenticated clients: unauthenticated REST requests don't block for very long, so the server *should* be able to drain the receive buffer.

ACKs for top commit:
  jeanpablojp:
    tACK 3d1004cb9b8f27bd328d95b4c7524e878c296d61
  frankomosh:
    ACK 3d1004cb9b8f27bd328d95b4c7524e878c296d61
  hodlinator:
    ACK 3d1004cb9b8f27bd328d95b4c7524e878c296d61
  winterrdog:
    tACK 3d1004cb9b8f27bd328d95b4c7524e878c296d61
  sedited:
    ACK 3d1004cb9b8f27bd328d95b4c7524e878c296d61

Tree-SHA512: 56f7678a9ab6789aa542c1f252df0b6ccf9137cb426ff915a0a3fe8285200fdb62b7a47c476ed8617c3592e7a7eac18158cd8c0dac309cdcf4e5fd887e016209
@janb84

janb84 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

@pinheadmz Not to make this a big back-and-forward, that is not my intent.

Not sure if I'd call that a side effect, or the intended effect. You're pushing hundreds of requests per second into the server and the new behavior is to only read one buffer-load (65kB) per 50ms-I/O loop tick. All the requests in that load can be handled within one tick, and the next requests have to wait in the socket.

I think this is a bit more nuanced, and in that lies what I wanted to convey. It's not "one buffer-load per tick with all requests in the load handled in that tick", it's one request per tick, each paying a full poll() timeout. This matters because thats the part that matters for, if the per-50ms ceiling is a side-effect (imho) or needed for the solution. (I think you can lift the ceiling without touching the memory bound, e.g. wake the poll when the worker clears m_req_busy )

To be clear, I'm not arguing against the bound. This PR clearly fixes the memory exhaustion.

@pinheadmz

pinheadmz commented Sep 7, 2026 •

Copy link
Copy Markdown
Member Author

wake the poll when the worker clears m_req_busy

Gotcha now, yeah I think you're right and @theuni proposed a strategy for this during #35182 and the implementation of "optimistic send" which we can still do in the future: We add our own internal socket pair to the poll list, and whenever we need to wake up before the full 50 ms timeout, you push one byte across the pair so it reports an event and triggers the rest of SocketHandlerConnected()

sedited added a commit that referenced this pull request Sep 10, 2026
28b69e2 http: stop processing requests from a client when send buffer is full (Matthew Zipkin)

Pull request description:

  This is a follow-up to #36123 and applies a second throttle mechanism to the send-side. If a misbehaving client refuses to read data from the socket, the server will now stop processing requests instead of packing more and more responses to `m_send_buffer` without bound.

  After we parse a complete request from a client, **before** we dispatch it to a worker, we quickly lock and check the size of `m_send_buffer`. If there's already 32MiB of data there (reusing `MAX_BODY_SIZE` here, open for bikeshedding...) we do not dispatch the request to a worker, leaving it in place as `m_req`.

  This was found and disclosed responsibly by the Red Team 🟥.

ACKs for top commit:
  hodlinator:
    ACK 28b69e2
  janb84:
    re ACK 28b69e2
  sedited:
    ACK 28b69e2

Tree-SHA512: ecefdf6406fa40aa28fe284fd4b5a148a0e4ef84b857e373cc7a55c84bac5c7a928b09c088d9ebe5a2adadfbd95a5ae1644f024947ed891da067130d1aa84ae6
achow101 added a commit that referenced this pull request Oct 5, 2026
…ceive-throttle regression test

493850c test: assert HTTP receive throttle from server-side log (Matthew Zipkin)
767d86a http: log received bytes per client read (Matthew Zipkin)

Pull request description:

  Closes #36216

  Improves and fixes the test introduced by #36123 to cover regressions in the server's receive throttle. The original test relied on client-side signals to assert server-side behavior which can easily be disrupted by a platform's TCP stack. Macos for example may suddenly re-open a TCP window size based on heuristics out of our control (`SB_AUTOSIZE`), despite the application not reading any data from the socket. Macos also may delay transmission of data between 5-60 seconds as the TCP window shrinks (`TCPTV_PERSMIN` / `TCPT_PERSIST` / "silly window syndrome" avoidance). All these behaviors were observed by running the current CI test on my fork hundreds of times, capturing TCP packets and processing them locally against the CI debug log.

  The improved approach is similar to how we test the send-side throttle in #36174 using debug log messages. This way we test the thing we know we can control (bitcoind).

  To introduce the regression patched by #36123 and fail the new test:

  ```diff
  diff --git a/src/httpserver.cpp b/src/httpserver.cpp
  --- a/src/httpserver.cpp
  +++ b/src/httpserver.cpp
  @@ -1040,13 +1040,7 @@ HTTPServer::IOReadiness HTTPServer::GenerateWaitSockets() const
           // before the next is taken and they stay separate critical sections.
           // Holding m_sock_mutex while acquiring m_send_mutex would invert that
           // order and risk a lock-order-inversion deadlock.
  -        Sock::Event event{0};
  -        if (http_client->ReadyToSend()) {
  -            event = Sock::SendEvent;
  -        } else if (http_client->GetRequest() != nullptr || http_client->ReceiveBufferEmpty()) {
  -            // Mid-parse (need more bytes) or buffer empty.
  -            event = Sock::RecvEvent;
  -        }
  +        Sock::Event event = (http_client->ReadyToSend() ? Sock::SendEvent : Sock::RecvEvent);

           io_readiness.events_per_sock.emplace(sock, Sock::Events{event});
           io_readiness.httpclients_per_sock.emplace(sock, http_client);
  ```

  For usual bitcoind activity, httpo debug logs will only grow by one extra line per request. Huge requests like those generated by the test may produce a hundred or so lines of "Received data" messages. These are optional debug lines in a worst-case scenario, but reviewers can discuss rate-limiting that log activity if we're afraid it's too much.

ACKs for top commit:
  davidgumberg:
    crtACK 493850c
  achow101:
    ACK 493850c
  winterrdog:
    tACK 493850c
  ismaelsadeeq:
     Code review ACK 493850c

Tree-SHA512: 2c501b69c1b3cebb7c15e574edf8d24f50a4c49af48073123f0864ac38813d696bca3ccb5dd86cd98b47eac77c71bb8943a974a35e81b0df8f9690d2239f2922
alexanderwiederin added a commit to alexanderwiederin/rust-bitcoinkernel that referenced this pull request Oct 6, 2026
…8aedda9e983

38aedda9e983 test: add kernel tapscript v2 evaluation coverage
7d10a1c7a3c2 kernel: expose tapscript v2 script evaluation
4d9d46470a04 script: extract tapscript v2 witness execution
16c0ca94bf8f kernel: add varops to ScriptTraceFrame in Kernel API
599682f1815f kernel: add varops to script tracer
01d61cb08ebd script: extend trace hooks to tapscript v2 evaluation
231b0b2c80d7 kernel: Add script tracer
82cfa2cd9c47 bench: add BIP 440 varops calibration tool
a87b56a1fdae fuzz: add tapscript v2 and Val64 targets
b45d72f04a78 rpc: report script restoration deployment
9afee38c25c0 test: add tapscript v2 functional coverage
133151204f20 test: add BIP 440/441 unit coverage
a5a612b4bb3a script: support tapscript v2 in signing and utilities
0575a794c6b7 script: implement tapscript v2 evaluation
7be8cda33f5d consensus: add BIP 441 script restoration deployment
ecf3a0eb3e49 script: copy EvalScript for tapscript v2
004f8a6fc936 script: plumb transaction-wide varops budgets
cf43ac7d1f77 script: define tapscript v2 limits and opcode classification
ecd26db635fe script: add size-accounting stack for tapscript v2
ecc7779e4f74 test: add Val64 unit coverage
5c526ff67219 script: add Val64 for BIP 441 arithmetic
b6f80778126e script: define varops budgets and costs
ced4c6e6ab47 Merge bitcoin/bitcoin#36321: net: cast vector size to avoid overflow, truncation, sign change
e7a18350967f Merge bitcoin/bitcoin#36235: ci: fail iwyu job on compiler errors instead of silently logging them
05bc2f53ce0c Merge bitcoin/bitcoin#36024: ci: Make `test_bitcoin-qt.exe` output visible
ed7dd7cf4e15 Merge bitcoin/bitcoin#34371: wallet: allow importprunedfunds for spending transactions
f80aaf4bd7c6 Merge bitcoin/bitcoin#29278: Wallet:  Add `maxfeerate` wallet startup option
e19f83e944e9 Merge bitcoin/bitcoin#35984: sign: skip signing SIGHASH_SINGLE inputs with no corresponding output
ab8033566757 Merge bitcoin/bitcoin#36135: fuzz: test HTTPRequest state machine in http_request
65e075f89fdd Merge bitcoin/bitcoin#35696: i2p: update leaseset encryption types
d26f19c77c7b Merge bitcoin/bitcoin#35948: init: correct first-run disk space estimate
90374132737e Merge bitcoin/bitcoin#36335: Remove my key from SECURITY.md
f6b19b190b2e Merge bitcoin/bitcoin#36322: init: fee estimates can lag behind the chain after restart
5820537e1b4b Remove my key from SECURITY.md
da03790dbb11 Merge bitcoin/bitcoin#36324: test: Fixup MAX_BODY_SIZE http throttling test
37969fc15211 Merge bitcoin/bitcoin#36312: net: don't discourage private broadcast peers
e8e7e91a1144 Merge bitcoin/bitcoin#36284: wallet: don't double discard output groups with avoidpartialspends
8c27c3852641 init: drain callbacks before saving fee estimates
08729e6ef9c9 test: characterize fee callback loss at shutdown
308cd670195d net: cast vector size to avoid overflow, truncation, sign change
bfdcd9797cd1 Merge bitcoin/bitcoin#35890: doc: use overwrite (>) instead of append (>>) for one-shot PSBT files in offline-signing-tutorial.md
de9f42c497df Merge bitcoin/bitcoin#36316: ci: use POSIX threads for Nix Windows builds
fa2c62036b1d test: Fixup MAX_BODY_SIZE http throttling test
5c726f2058a4 Merge bitcoin/bitcoin#35675: mining: add block template manager
26241482e530 Merge bitcoin/bitcoin#35923: mempool: count unbroadcast txids in memory usage
a632d4f697f3 Merge bitcoin/bitcoin#35177: test: use MiniWallet for getblockstats test data generation
be5d0b5503fa Merge bitcoin/bitcoin#35301: Silent Payments: Implement bip352 (take 2)
b3f846ec3e5c Merge bitcoin/bitcoin#35440: wallet: check descriptor cache xpub length before decoding
dc3cd1969ed3 Merge bitcoin/bitcoin#35809: contrib: add deterministic fuzz coverage mode
81e2de897dbc Merge bitcoin/bitcoin#35893: test: cover submitpackage other-wtxid for same-txid-diff-witness
eab6630addc3 net: don't discourage private broadcast peers
31754523cd81 Merge bitcoin/bitcoin#36309: private broadcast: clarify claims, mark as experimental
9fd18aedb088 ci: print Windows cross compiler thread model
1d59d5ad2550 ci: use POSIX threads in Nix Windows cross shell
e3ee0ebd89e9 tests: add BIP352 test vectors as unit tests
f133d1373af6 common: add bip352.{h,cpp} secp256k1 module
96d487c11e8f ci: raise BuildKit step log limit
44997c391afc Add "sp" HRP
356c91f6ae51 crypto: add KeyPair::GetSecpKeypair
2b95b45a9abd Merge bitcoin/bitcoin#35813: wallet, rpc: Add listrawtransactions RPC
71c30b608382 Merge bitcoin/bitcoin#27052: test: rpc: add last block announcement time to getpeerinfo result
d36f4a1788da Merge bitcoin/bitcoin#36155: doc: remove json quoting from gettxoutsetinfo and getblockstats cli examples
b7211ba80cde Merge bitcoin/bitcoin#34717: p2p: remove m_getaddr_sent
7ee3d622e5fa Merge bitcoin/bitcoin#35752: wallet: make encryption state updates atomic
f41372998377 private broadcast: mark feature as experimental
2630d8e6c9d6 doc: scope claims about private broadcast feature
248ce46faf70 Merge bitcoin/bitcoin#35619: test:  ExtendedPrivateKey follow-ups
995da8678a02 Merge bitcoin/bitcoin#36302: ci: simplify macOS codesign check
db7ec4fb9762 refactor: (de)serialize CExtKey/CExtPubKey through streams
cb69853fc160 wallet: check descriptor cache xpub length before decoding
f86cbf53eb3e Merge bitcoin/bitcoin#36310: rpc: clarify that `getaddrmaninfo` counts unique addresses
bbc40ede1ba6 Merge bitcoin/bitcoin#36261: test: cover PSBT unknown field merging
f839ee1afb0f Merge bitcoin/bitcoin#35887: ipc: use std::optional for checkSpawned(), add tests and rename arg -ipcfd to -ipcchild
dac53c585b6a Merge bitcoin/bitcoin#31888: contrib: Support re-writing linearize-data dumps
0d34b6e9287f rpc: clarify that getaddrmaninfo counts unique addresses
4ecbc82d412f Merge bitcoin/bitcoin#36278: Update minisketch subtree to latest master
622817f097d6 ci, iwyu: fail job on compiler errors instead of ignoring them
5ca3773414df Merge bitcoin/bitcoin#36298: Update crc32c subtree to latest master
5945cb83ddcf contrib: add deterministic fuzz coverage mode
69ad2a67f26c Merge bitcoin/bitcoin#36283: kernel: expose transaction version
716e8605e5c8 ci: simplify macOS codesign check
bb5296576e8f Merge bitcoin/bitcoin#36206: build: drop use of `OBJC_OLD_DISPATCH_PROTOTYPES`
170d37983c7a Merge bitcoin/bitcoin#36198: http: Add missing LIFETIMEBOUND annotations
c08489fb2741 Merge bitcoin/bitcoin#36288: build: Revert remove `cmake/script/CoverageFuzz.cmake`"
4a583f38ef2f Merge bitcoin/bitcoin#36230: wallet: Improve `HasWalletDescriptor` performance and other canonical descriptor string followups
5f05d8c5f6dd Merge bitcoin/bitcoin#36297: rpc: Correct invalid OpenRPC defaults
b7f740c594ba rpc: Correct OpenRPC default metadata
2c8372db1131 Update crc32c subtree to latest master
5181c61d734f Squashed 'src/crc32c/' changes from efb8ea04e4..60bcf13edf
83434f7683e4 kernel: expose transaction version
7c311f5c6c3e doc: Add release notes for listrawtransactions
b377786df14e test: Add functional test for listrawtransactions
605c4fd3aee0 wallet, rpc: Add listrawtransactions RPC
ba6c179ba07c wallet, rpc: allow omitting parent_descs from TransactionDescriptionString
d48e76e689bb Merge bitcoin/bitcoin#36286: crypto: Fix MuHash3072 division by itself
719324977a41 test: Check that ineligible output groups are discarded only once
6d2414542b86 wallet: reuse unlock and passphrase change errors
593554622e2c wallet: return passphrase errors with Expected
f949b3ba2ad7 wallet: publish descriptor keys after writes
e3712b7d492f test: characterize descriptor insertion failure
bd558107784c wallet: abort failed descriptor key erases
537e79191585 test: cover encrypted descriptor key insertion
d8a6f5e48d6b wallet: abort failed descriptor key writes
14ce3fdb493a test: characterize descriptor key failures
5bc0be16fe4d wallet: reject failed passphrase changes
ee6d45a07e3a test: characterize passphrase write failure
2daa2f94f4a2 wallet: restore lock state before re-encryption
8b23fa47737a wallet: abort failed encryption transactions
e6c374d30201 test: characterize encryption transaction failures
70381010c0af refactor/test: add wallet failure injection
0e9018e8b656 Merge bitcoin/bitcoin#36249: net, rpc: Asmap version improvements/follow-ups
61edcf925325 test: Add 31.1 to wallet back compat
ebf2f69ee819 test: Simplify miniscript descriptor check in wallet back compat
f6cbcfd98a00 wallet: Document WalletDescriptor::UpdateFrom
f0f6dce84963 descriptor, doc: Clarify miniscript CompatDescriptorHash
405b1d6055e7 descriptor: Explicitly handle use_apostrophe cases
64abb3e8d361 wallet: Compare descriptors by hash of canonical string
bb5e8320d76f wallet: Make WalletDescriptor's descriptor const
4cc00f7bc04b wallet: Remove WalletDescriptor's default constructor
dc3e2bc6df68 wallet, rpc: extract PushTxAmountAndFee/PushTxDecoded helpers
b388f9bd0d2b crypto: Fix MuHash3072 division by itself
4f624bb82ddf Revert "build: Remove `cmake/script/CoverageFuzz.cmake`"
ad97933af248 Merge bitcoin/bitcoin#36285: refactor: Use static const over inline const to work around ld64 bug
a604a7647588 Merge bitcoin/bitcoin#36282: Update leveldb subtree to latest master
fa8fefb29b6c refactor: Use static const over inline const to work around ld64 bug
2bbbeaa663ec Merge bitcoin/bitcoin#34861: wallet: Add importdescriptors interface
20307f0ac0e1 wallet: don't double count discarded output groups with avoidpartialspends
7528f799d99d Update leveldb subtree to latest master
4be88b9bce45 Squashed 'src/leveldb/' changes from 13da2d6758..53a1914e00
749bd10fdf01 Update minisketch subtree to latest master
fcb2d832b2d9 Squashed 'src/minisketch/' changes from 4a179c61e3..a12f5de1c9
21e4ea8134d8 test: cover PSBT unknown field merging
59f7f3d07d95 build: drop use of OBJC_OLD_DISPATCH_PROTOTYPES
b82158554372 Merge bitcoin/bitcoin#33593: guix: Use UCRT runtime for Windows release binaries
0b353a9e872e netgroup: Cache asmap version
fb68c27002a7 Merge bitcoin/bitcoin#36260: torcontrol: Use reconnect backoff after dropped connections
7dedc4545a49 Merge bitcoin/bitcoin#36256: guix: Update osslsigncode to 2.14
a687188101af Merge bitcoin/bitcoin#36160: refactor: Minor improvements to HTTP unit tests
651e44f32797 Merge bitcoin/bitcoin#36194: kernel: expose block header Merkle root
d32a515fb0bb Merge bitcoin/bitcoin#34566: feature: Use different datadirs for different signets
59a465ce3782 guix: Validate codesigned windows binaries
66eeac216ad5 guix: Use osslsigncode 2.14
4556ef626754 torcontrol: Apply reconnect backoff after dropped connections
57721f8074c2 Merge bitcoin/bitcoin#36253: fuzz: Use `LIMITED_WHILE` in `connect_block`
dadca55f60ad Merge bitcoin/bitcoin#36251: rest: add `generated` and `height` to spenttxouts JSON
de394ad3b739 Merge bitcoin/bitcoin#36207: kernel: add wtxid accessor
f69e56bc1c43 [doc]: add release notes
40ab7aa90de5 [wallet]: warn when `-maxtxfee` conflicts with `-minrelaytxfee`
df1feeb487dc [wallet]: enforce `-maxfeerate` on wallet transactions
d2c832e9e79d [util]: add a new transaction error type
633c08d3f7af [node]: update `BroadcastTransaction` to check fee rate limit
7bfce65801bf [wallet]: add `maxfeerate` wallet startup option
607568f2b002 [wallet]: update `max_fee` to `max_tx_fee`
6b913b6224bd doc: add missing verb to make sentence readable
a9c39696f4be scripted-diff: rename `m_default_max_tx_fee` to `m_max_tx_fee`
16278c28166b kernel: expose block header Merkle root
51ddab532cb3 Merge bitcoin/bitcoin#35819: test: add coverage for untested descriptor parse error paths
2c249dbdf5c9 wallet: Add an importDescriptors() interface for the wallet
3be5f401370e wallet: add CheckDescriptorRangeBounds
43bba1ed74f8 kernel: expose transaction witness presence
31224d068077 kernel: expose transaction wtxid
a9cd985d0a54 wallet: Move ImportDescriptor and ProcessDescriptorsImport to imports.cpp
c9650d8f0e2f wallet: rename ProcessDescriptorImport to ImportDescriptor and add ProcessDescriptorsImport
a40ee4ec2659 wallet: rpc: refactor: ProcessDescriptorImport returns ImportDescriptorResult
48d3d717fb6e wallet, util: Add HandleWalletErrorCode
04c73a91d2cc wallet: Add ImportError struct and new WalletError codes
975215618505 wallet: rpc: refactor: Extract UniValue processing from ProcessDescriptorImport
f1f61af35727 wallet: Add ImportDescriptorRequest structs
7375124f4c9a wallet: refactor: make is_ranged no longer an optional
90485103c67d wallet: lower the minimum timestamp to 0
380d3ae0deab wallet: rpc: Use std::optional in GetImportTimestamp
e0229ca68515 fuzz: Use LIMITED_WHILE in connect_block
1566a4767afd rest: add generated and height to spenttxouts JSON
cff00c547e74 Merge bitcoin/bitcoin#34743: p2p: don't disconnect manual peers for block stalling
a09a81ebfce3 Merge bitcoin/bitcoin#35961: depends: Update `boost` package to 1.92.0
76343a09f802 Merge bitcoin/bitcoin#36186: test: return False for a too-short ECDSA signature
5551d39b202b doc: document manual peer stalling behavior
24628d3ae7dc test: cover manual peer block download cooldown
4c79f3a34d00 test: support manual connections in addconnection
698b5bbf3a0a p2p: pause stalling manual block downloads
c38e0d20c3c0 Merge bitcoin/bitcoin#36093: test: ipc should reject invalid json
a49fa1f6e698 Merge bitcoin/bitcoin#35849: init: don't suggest -reindex-chainstate for recovery on a pruned node
dd3c62c55fdc Merge bitcoin/bitcoin#36083: test: cover getrawtransaction on a stale block via txindex
36c1b149fe37 Merge bitcoin/bitcoin#35472: test: add coverage for feebumper uncomputable cluster error path
7c4facb51bbe Merge bitcoin/bitcoin#36081: rpc: add bestblockhash to getmininginfo
c1e9d15406fb doc: Describe how to verify the asmap in use
87ce88c1b53c rpc: Add asmap_version to getnetworkinfo
dd5a8a63b223 test: Check embedded asmap version log and addrman re-bucketing
d9d057841029 Merge bitcoin/bitcoin#34681: wallet: move rescan logic into ChainScanner and wallet/scan
2ca83ba2622a Merge bitcoin/bitcoin#35436: wallet: Add addHDkey interface
0bc87365cac1 init: Log asmap version from NetGroupManager
fdfd196908e1 rpc: Reuse AsmapVersion in exportasmap
adca0a97406d Merge bitcoin/bitcoin#36247: iwyu: Always keep `bitcoin-build-info.h` header
1aa500b6b7d8 iwyu: Always keep `bitcoin-build-info.h` header
d25470d992b7 Merge bitcoin/bitcoin#35975: wallet: Fix `CWalletTx` malleated transaction metadata sync
2c6047df8746 test: Bumping a transaction prevents bumping malleations
a44f9ad35058 test: Test rbf metadata sync of malleated tx
752fd437c7cf wallet: persist synced metadata and do not sync on load
31eedfc6fc8b wallet: simplify wtx metadata sync
6c16d76f790c wallet: sync tx replacement metadata to malleated txs
34533d5d22b6 wallet: Clarify IsEquivalentTo is actually checking malleation
b973a355c4eb Replace CTransaction::operator== with Equals that has options
8df006f23383 wallet: skip signing SIGHASH_SINGLE inputs with no corresponding output
3d7d190b6995 ci: enforce iwyu for block template manager
ffe3a631f38b node: remove NodeContext::mining and EnsureMining
6c71166bcfa4 test: create templates via BlockTemplateManager
ec4f24ef181a rpc: wait for tips via BlockTemplateManager
8372721f20e2 rpc: build generation templates via BlockTemplateManager
38556f817e06 rpc: only copy the header in getblocktemplate
951fac807d37 rpc: do not copy template data in getblocktemplate
0998c0bbdfcc rpc: build getblocktemplate via BlockTemplateManager
011cbfbcd2e3 rpc: route getblocktemplate internals through node
400ac328c91b interfaces: create block template via BlockTemplateManager
037d3519f2ff node: move tip and wait helpers into BlockTemplateManager
07964c525d47 miner: move SubmitBlock into BlockTemplateManager
bcdadf2b7111 node: move mining_args to BlockTemplateManager
482a5d27124c node: introduce BlockTemplateManager
2efaa6763bd2 wallet: simplify and restrict SyncMetaData to malleated txs
fc718ade4fce test: Test that metadata is synced to malleated transactions
17817818da3c Merge bitcoin/bitcoin#36228: ci, iwyu: generate embedded ASMap header explicitly
1cbbf64ea810 ci, iwyu: generate embedded ASMap header explicitly
1afa0cd70a09 cmake: add raw data header generation target
0476444e33bd Merge bitcoin/bitcoin#35935: wallet: Avoid unnecessary wtxvariant rewrites
feeb00af8cf3 cli: Add -signetchallenge info on RPC auth error
c47ea370dc9f doc: Update documentation for signet datadir
6f8c43f9efc6 test: Add signet datadir tests
9b37d42b23be Use different datadirs for different signets
6bdcae3f768b refactor: Import signet constant and helper from kernel/signet.h
f3fec67c3eeb Merge bitcoin/bitcoin#36227: Pre 32.x branching updates
9a48134aea11 docs: Update bips.md
57d3d0013054 build: Bump version to 32.99
4d463de80408 Merge bitcoin/bitcoin#36226: doc: Move release notes to wiki ahead of branch-off
5df082721cdb doc: Move release notes to wiki ahead of branch-off
8c64ff02425d Merge bitcoin/bitcoin#34914: contrib: replace deprecated --deep codesign flag, fix accidental --verify skip on ci
501ba4cad4b3 Merge bitcoin/bitcoin#36196: contrib, kernel: fixed seeds, chainparams, headerssync params, and assumeutxo updates pre-32.0
92986c736223 Merge bitcoin/bitcoin#36213: Release: 32.0 translations update
1a4e034ddbdc Merge bitcoin/bitcoin#36209: guix: cache GUI depends separately
a6b330973e64 Merge bitcoin/bitcoin#36150: indexes: set prune lock to genesis before first block
fed50258f8f0 kernel: add recent assumeutxo snapshot
7eb4cec1a983 kernel: Update headerssync params
9b2299514028 indexes: set prune lock to genesis before first block
fc6923cec5b4 Merge bitcoin/bitcoin#36215: asmap: Make version match externally computed hashes
2c2667eaa902 qt: 32.0 translations update
51b540c59aae Merge bitcoin/bitcoin#36218: build: avoid `pipe2` on Darwin (for now)
a42da819a96c Merge bitcoin/bitcoin#36174: http: throttle send buffer when client stops draining
da7d7dbc7c00 contrib: remove deprecated --deep codesign flag
9c7748315d31 build: avoid pipe2 on Darwin (for now)
1fe87c250547 guix: cache GUI depends separately
7ee94bf4b023 asmap: Make outputted ASMap version match externally computed hashes
4a15e0b6f9c5 Merge bitcoin/bitcoin#36195: test: `get_previous_releases.py` use `PREVIOUS_RELEASES_DIR`
b5ef74b248cd Merge bitcoin/bitcoin#36211: doc: Fix PR reference in productivity guide
5a5b1ed7471f Merge bitcoin/bitcoin#36201: Update embedded asmap to 1788801420
b3a9b84b37c0 doc: Correct upstream-pull reference
fc4f35fdce4d Merge bitcoin/bitcoin#35513: rpc: help metadata fixes
af83bacdf9d6 Merge bitcoin/bitcoin#36202: doc: add rel note about potential CJDNS removal
ecdf9db906b4 test: get_previous_releases.py use `PREVIOUS_RELEASES_DIR`
28b69e298884 http: stop processing requests from a client when send buffer is full
ad4eeaf859c4 ci: avoid modifying GOAL in 03_test_script.sh
7e75b3b922f9 Merge bitcoin/bitcoin#36116: iwyu: Fix warnings in `src/rpc` and treat them as errors
9d4325f40316 Merge bitcoin/bitcoin#36203: Update secp256k1 subtree to latest master
3c91db262b74 net: Update embedded asmap to 1788801420
ffe6aa57fef1 Merge bitcoin/bitcoin#36199: net: treat RFC 9637 new IPv6 documentation range as invalid
00d0c5107b92 test: return False for a too-short ECDSA signature
ba9050ac9b35 Update secp256k1 subtree to latest master
da3401e50fc1 Squashed 'src/secp256k1/' changes from 687155df6b..a7f264373e
7d54a88b4453 iwyu: Fix warnings in `src/rpc` and treat them as errors
462ff18d79bd iwyu, refactor: Fix includes in some source files
2285d1931aa8 Merge bitcoin/bitcoin#35468: ci, iwyu: Request IPC file generation explicitly
b48a27691ded fuzz: assert invalid addresses are not routable
e6c775c6d63a net: treat RFC 9637 new IPv6 documentation range as invalid
005ea9f42e50 Merge bitcoin/bitcoin#35778: scripted-diff: Use C.UTF-8 locale in all shell scripts
064122af269b Merge bitcoin/bitcoin#36181: ci: Upgrade IWYU to 0.27 compatible with Clang 23
99f81fe0296b Merge bitcoin/bitcoin#35303: policy: fix negative CFeeRate::ToString() formatting
46654094beef lint: Use C.UTF-8 locale only in shell scripts
d6a2341632a0 doc: add rel note about potential CJDNS removal
fb26bc9cfefe Merge bitcoin/bitcoin#35445: wallet, descriptor: Revert `StringType::COMPAT` for Miniscript expressions and drop the concept of a Descriptor ID that can be validated
494300f4cc92 Merge bitcoin/bitcoin#35796: depends: fix IPC listeners on macOS dying when accepting a dead socket
42d93d40de35 kernel: update chainTxData
a25511dfbcd3 kernel: update defaultAssumeValid and minimumChainWork
67726a63a41f kernel: update assumed blockchain and chainstate sizes
fcfc1df041b8 contrib: Update fixed seeds
6385aa1df8ab contrib: Update makeseeds for 30.3 and 31.x
0ae3b40c274a test: characterize startup with newly added prune and index
4c9d55a6125a Merge bitcoin/bitcoin#36076: psbt: preserve sighash type when merging inputs
59fd053dac83 Merge bitcoin/bitcoin#34931: validation: abort on DB unreadable coins instead of treating them as missing
33a363ea2508 Merge bitcoin/bitcoin#36168: PSBT: Make input/output `Merge()` methods return void
0b46fc9c5935 http: Add missing LIFETIMEBOUND annotations
ea785a31f783 psbt: preserve sighash type when merging inputs
013b0b2de481 Merge bitcoin/bitcoin#36176: wallet: avoid a crash when creating a wallet with -nosettings
2ed4be47213f Merge bitcoin/bitcoin#36113: psbt: fix rendering for invalid long sighash type field
19b0ff2fa050 Merge bitcoin/bitcoin#36136: rpc: remove stale "canonical form" claim from getdescriptorinfo help
0c6f2af97b5c Merge bitcoin/bitcoin#36127: wallet: remove unused code
3b944f194fdd iwyu: Switch to generated Clang intrinsics mapping file
1b5ee3be5948 ci: Upgrade IWYU to 0.27 compatible with Clang 23
6ed7c535adb0 iwyu: Prefer canonical headers
35104a8654f8 Merge bitcoin/bitcoin#35949: miner: Enforce Murch-Zawy rule (BIP54)
51db0e7696ed Merge bitcoin/bitcoin#36096: rpc: avoid quadratic JSON construction when keys are unique
161a9add8e02 Merge bitcoin/bitcoin#35164: test: cover P2SH sigop counting in test_witness_sigops
a174dd4017cf Merge bitcoin/bitcoin#36161: build: Remove `cmake/script/CoverageFuzz.cmake`
b557fb2728e9 Merge bitcoin/bitcoin#36164: util: diagnose dangling views of temporary strings
5f0daa0eae80 Merge bitcoin/bitcoin#36169: http: Use SO_EXCLUSIVEADDRUSE on Windows
a34fc8b11a42 wallet: handle disabled startup settings
b7113e6f42c2 test: characterize disabled wallet settings
f0c839ace5a2 Merge bitcoin/bitcoin#36123: http: throttle per-connection reads while a request is in flight
0f206eed51e2 Merge bitcoin/bitcoin#36130: test: add tests in transaction_tests.cpp covering live mutants
0b43dea121fc Merge bitcoin/bitcoin#36163: test: Add coverage for unsatisfiable locktime combination in PSBT `ComputeTimeLock()`
3596658af5eb Merge bitcoin/bitcoin#36166: validation: refactor: encapsulate Chainstate::m_target_blockhash
f32bfb25934f Merge bitcoin/bitcoin#35738: coins: parallel input prevout fetching followups
bcb09b3f4aec qa: Verify HTTP listen port exclusivity
af65069fd15b windows: Use SO_EXCLUSIVEADDRUSE over SO_REUSEADDR
82deb69111f1 PSBT: Make input/output `Merge()` methods return void
f04b0c31627a refactor(test): Make test method use Uppercase, shorten enum values
6eea8e313cce refactor(test): Simplify HTTP response check
852f201e09cb validation: refactor: encapsulate Chainstate::m_target_blockhash
fca8fef8f903 fuzz: assert HTTP framing is independent of stream segmentation
b57b0dbebd56 util: annotate `Split` input lifetime
34c5dc0583dd util: annotate string view input lifetimes
c368de3eec9c fuzz: exercise the HTTPRequest state machine
00a5f9b7375e build: Remove `cmake/script/CoverageFuzz.cmake`
69a640e05ec0 test: Add coverage for unsatisfiable locktime combination in PSBT ComputeTimeLock
5ce3a0b4aab5 test: cover legacy sigops count CHECKMULTISIG inaccurately
a5fc82e2b140 test: cover enforce BIP68 to tx versions higher than 2
bba1d4150ee8 test: cover IsFinalTx requires every input to be SEQUENCE_FINAL
4519933391dd Merge bitcoin/bitcoin#36137: validation: use unused SetTargetBlockHash
4ec6ff022a4b Merge bitcoin/bitcoin#36100: ci: use LLVM 23 in *san, fuzz, *cross jobs
7f0c4020e8d3 Merge bitcoin/bitcoin#36118: test: tolerate race condition in interface_http.py
455080105835 validation: use unused SetTargetBlockHash
5ba9af6b6922 ci: pass LIBCXX_INCLUDE_TESTS=OFF to LLVM build
feb3bd46e4c8 clang-tidy: remove some performance-* options
b4bd12d3d5d6 ci: use LLVM 23 in *san, fuzz, *cross jobs
d840adb9da54 Merge bitcoin/bitcoin#36144: rpc: detail x-bitcoin-unit in openrpc help
f41b917f47cd Merge bitcoin/bitcoin#36145: qa: Use IP_PORTRANGE_HIGH on OpenBSD for dynamic port allocation
d5fbe61f55b2 Merge bitcoin/bitcoin#35958: net: align v2 message type validation with v1 range
64ab0a06979e Merge bitcoin/bitcoin#36148: test: Avoid unsafe memory race in index_reorg_crash shutdown
57a79c69627d doc: remove json quoting from gettxoutsetinfo and getblockstats cli examples
a51df9b0ecf6 test: tolerate race condition in interface_http.py
fab80e82c108 test: Avoid unsafe memory race in baseindex_no_commit_ahead_of_flush
b811aeabad94 Merge bitcoin/bitcoin#36048: util: keep wallet names literal in notification commands
fa0f14ef5e76 test: Avoid unsafe memory race in index_reorg_crash shutdown
faf9c8e8a12c test: Clarify index.GetSummary().synced state in index_reorg_crash
a34861d280b3 test: unify how to avoid the creation of the default wallet in nodes
3458837a0b76 test: use ExtendedPrivateKey in wallet_importdescriptors.py
59ebf558f345 qa: Use IP_PORTRANGE_HIGH on OpenBSD for dynamic port allocation
6f6b2bbde244 Merge bitcoin/bitcoin#35808: fuzz: reset connman state in p2p targets
e85e27976bfb rpc: detail x-bitcoin-unit in openrpc help
3d1004cb9b8f http: throttle per-connection reads while a request is in flight
db39de560109 doc: add `-walletnotify` security note
1f9dfabef641 refactor: use string views in `ReplaceAll`
469b0e59a29a util: make `ReplaceAll` literal
604d7e8fdd95 test: characterize walletnotify shell injection
4efaa6763a7e test: simplify `ReplaceAll` coverage
793e22eed586 test: cover getrawtransaction on a stale block via txindex
a84fbf9dfd2c test: name the getrawtransaction test nodes
74ddf1c0a0ef refactor: use structured bindings for map entries
21d5d5cb7390 rpc: append unique container keys directly
23e512a58e69 rpc: avoid quadratic prioritised transaction JSON
9f0543d69a13 wallet: remove unused DatabaseOptions members
dc0395c5858a Merge bitcoin/bitcoin#36112: ci: Exclude subtrees from iwyu
37c57bc5c297 Merge bitcoin/bitcoin#36065: test: refactor: Remove confusing ignore_errors=True
8157964e66ce Merge bitcoin/bitcoin#36134: doc: Correct comment about which subsystem detects lagging clocks
259553c6628a Merge bitcoin/bitcoin#36131: rpc: Improve two field's OpenRPC types
1dad06eff3d5 remove stale canonical form claim from getdescriptorinfo help
55390d1827c7 doc: Correct comment about which subsystem detects lagging clocks
fe3c92cfe0da Merge bitcoin/bitcoin#36102: util: Replace !ContainsNoNUL() with ContainsNUL()
d23b53e0cfbc fuzz: allow http_request inputs to reach MAX_HEADERS_SIZE
58dfcf29f6da Merge bitcoin/bitcoin#35351: net: Disallow invalid HeadersSyncState due to lagging clock
c0ed327845be Merge bitcoin/bitcoin#36103: validation: remove unused code
78e691ea10a1 rpc: Change listunspent's ancestorfees type to NUM
73fb9ced563c rpc: Fix private key type in signrawtransactionwithkey
128e5c6805a0 Merge bitcoin/bitcoin#35477: test: exercise Schnorr signature cache in txvalidationcache_tests.cpp
bbed824a64f0 wallet: remove unused warnings parameter from CreateFromDump
2f6aa41d3d19 wallet: remove unused WalletDatabase::m_refcount
f64b3fa70f6a wallet: remove unused CHDChain keypool index members
4afc7bc40d4f wallet: remove unused COutput::ToString
a0e9aac42802 wallet: remove unused DescriptorScriptPubKeyMan::AddDescriptorKey
56af5e072a0d fuzz: extract http_request parse and framing check into helpers
d2e24e951de4 Merge bitcoin/bitcoin#36054: test: add script_tests cases covering interpreter mutants
75f64e50c67d test: exercise node abort on UTXO deserialization failure
4652cd0d828a txdb: detect UTXO deserialization errors via CDBWrapper::TryRead()
5dfbb91b6cc5 dbwrapper: add TryRead() to distinguish errors from valid outcomes
ca7162cde58e Merge bitcoin/bitcoin#35868: rpc, wallet: fix invalid JSON in HelpExampleRpc curl examples
d0e777baf5e2 Merge bitcoin/bitcoin#36111: rpc: bound memory for overlong Bech32 errors
fa3971011d1e ci: Exclude subtrees from iwyu
fa8566152a05 refactor: Bump old copyright header in univalue
05e49b342faa Merge bitcoin/bitcoin#36107: iwyu: Fix warnings in `src/init` and treat them as errors
1fca81960abc psbt: fix rendering for invalid long sighash type field
f14569f97d08 test: ipc should reject invalid json
858814146dd2 test: refactor Cap'n Proto exception assertions
7fcaccd9d0b7 bech32: bound overlength error locations
1bb5820b4411 wallet: Add addhdkey interface
1ad864127832 iwyu: Fix warnings in `src/init` and treat them as errors
82867073d6c3 wallet: Use WalletError for AddHDKey failures
f8769fc0b124 wallet: Move addhdkey logic into CWallet
e1a2b25d6c3b test: expand addhdkey coverage for locked wallet and bad key
21d4e0ba759b rpc, wallet, test: fix invalid JSON in HelpExampleRpc curl examples
15630c7b852c validation: remove unused m_chainparams from ATMPArgs
fa7be0a8df9d test: refactor: Remove confusing ignore_errors=True
84c5290149a3 validation: remove unused args from PolicyScriptChecks
a9d5cf7f9901 validation: remove unused args from ConsensusScriptChecks
d26dc09ee33e validation: remove unused total_vsize arg from PackageRBFChecks
2cb6c156e18b validation: remove unused PackageMempoolAcceptResult constructor
8d930981e9e1 refactor: Replace !ContainsNoNUL() with ContainsNUL()
f78834fac916 test: add missing coverage for CDBWrapper::Read() errors
1548d15de618 walletdb: Rename WriteTx to WriteFullTx
9a0628d9320d wallet: Write tx to database during CWalletTx::Update
74e1cd38f2a3 rpc: add bestblockhash to getmininginfo
ec2adf3c51ca test: Check miniscript descriptor h and apostrophe equivalence
a2d001b57c5f test: Enforce descriptor reimport is an update
e2b2f1c5c6f7 descriptor: Rename DescriptorID to CompatDescriptorHash
6ad31c062c70 test: Add 31.0 to wallet backwards compatibility test
2a6c53371be7 wallet, spkm: Treat Descriptor ID as an opaque SPKM ID
62e826fa7617 wallet: Update WalletDescriptor from another one instead of overwriting
1113f7590ed0 wallet, export: Include descriptor cache when exporting descriptors
9fc7b2618b6a spkm: Remove DescriptorSPKM constructor that doesn't take a descriptor
770ff64bd7fd test: Add v30.2 and Miniscript to wallet backwards compatibility test
35d6a60dbf5a descriptor: Add ToCanonicalString
1d87af26ce14 descriptors: Remove default StringType from PubkeyProvider::ToString()
1c7f9aaf758f miniscript: Don't use StringType::COMPAT
e07224f2d554 depends: fix IPC listeners on macOS dying when accepting a dead socket
b07810544f15 Remove MSVCRT-specific workarounds
7c86a370c8a2 doc: Update Windows build docs to reflect migration from MSVCRT to UCRT
f5910d1a3aaa ci: Remove Windows + MSVCRT jobs for cross-compiling and native testing
55f86ab1624a guix: Use UCRT runtime for Windows release binaries
4a12773f2697 test: cover DERSIG rejects a non-compound signature type
86c7fb910d67 test: cover OP_16 does not count towards the opcode limit
331bf798819c test: cover OP_WITHIN must pop all 3 elements
3bb87bc61b48 test: cover OP_FROMALTSTACK must pop the altstack
70701de7c555 ci: Make `test_bitcoin-qt.exe` output visible
ff3e2e4ebdce net: Trigger process abort when behind start block MTP
1883cecb4d05 test: Characterize lagging-clock headers presync
05e7d5731840 ipc, test: add checkSpawned() unit tests
42215b85811a init: correct first-run disk space estimate
e014e5bb61c1 miner: Enforce murch-zawy rule (BIP54)
d29b22d07897 fuzz: reset connman state in p2p targets
4200f8163a55 policy: fix negative CFeeRate::ToString() formatting
94cb65945738 depends: Update `boost` package to 1.92.0
cc577de95467 net: align v2 message type validation with v1 range
9054f7cde43a test: cover submitpackage other-wtxid for same-txid-diff-witness
1c557a380288 wallet: Add WriteTxMetadata to write just the tx record
e67f75cf7d3e wallet/scan: extract progress tracking helpers from `ChainScanner::Scan`
062aa3ce56d7 wallet/scan: extract QueueNextBlock
3655beb8f153 wallet/scan: extract block scanning logic to ScanBlock
4535dc0c7885 wallet/scan: extract block filter matching to ShouldFetchBlock
72a37031d325 wallet/scan: move WalletRescanReserver to scan files
0274e80130af wallet/scan: move RescanFromTime to ChainScanner as ScanFromTime
db9185a44464 wallet: introduce ChainScanner as a CWallet member
525163c2413e wallet/tests: pin rescan behavior
d180b891a290 test: add mixed P2SH/witness sigop accounting
c2da52d3660f wallet: allow importprunedfunds for spending transactions
db21e03c9d50 mempool: include unbroadcast txid memory
8d5c4a9290b0 test: characterize unbroadcast memory accounting
be30864ed1a6 doc: use overwrite (>) instead of append (>>) for one-shot PSBT files in offline-signing-tutorial.md
8bca7555f832 ipc, refactor: rename arg -ipcfd to -ipcchild
bd3a38f10ab7 ipc, refactor: return std::optional<mp::SocketId> from checkSpawned()
a31eb8bfa412 ci, iwyu: Request IPC file generation explicitly
0b3bb071036a test: add coverage for untested descriptor parse error paths
8e4b7ab7258a fuzz: use per-level fetch scopes in coinscache_sim
5292386b785a doc: improve CoinsViewOverlay documentation
d552c52b081c coins: log error reason when prevout fetch submission fails
2ffaa6e6a7db coins: delete Sync and SetBackend on CoinsViewOverlay
330022993fb9 coins: filter coinbase txid from parallel input fetching
adbff4d44286 init: don't suggest -reindex-chainstate for recovery on a pruned node
8976ba50a2b9 rpc: require connman in getnetworkinfo
975229580f74 rpc: Fix inaccuracies in RPC help docs
47632ab2a387 test: add coverage for feebumper uncomputable cluster error path
982ee649381f lint: Skip `libmultiprocess` subtree in `lint-shell-locale.py`
1194918a5d9c scripted-diff: Use C.UTF-8 locale in all shell scripts
13ce46ba1a79 doc: add release note for 27052
5d5397d84108 test: add functional test for block announcement time tracking
7d3d04e925c7 rpc: add last_block_announcement to the getpeerinfo output
26a25162a48a net: add m_last_block_announcement to CNodeStateStats
bb8bca630a8a change m_last_block_announcement type from int64_t to NodeClock::time_point
6e60c362bc1e test: add P2SH sigop counting coverage
412540e18d87 i2p: update leaseset encryption types
3ba1bbfa3f85 test: exercise Schnorr signature cache in txvalidationcache_tests.cpp
198b36bc85d5 test: respect "TAPROOT requires WITNESS" rule in `ValidateCheckInputsForAllFlags`
e78a2a0d00cf test: refactor: simplify tx vin/vout creation in txvalidationcache_tests.cpp
b7cbd804284b test: use MiniWallet for getblockstats test data generation
c8ee319fffa1 net: remove m_getaddr_sent
a1ecda260996 test: delete redundant addr relay assertion
e9dc16194b47 correct the linearize-data script (minor)
REVERT: e8a8daf3fad1 kernel: Add script tracer

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 38aedda9e983f6dd1df7f3ec7bc5f1d0782e9459
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants