Skip to content

Conversation

willcl-ark
Copy link
Member

...for default route in pcp pinholing.

Currently we only make a single recv call, which trucates results from large routing tables, or in the case the kernel may split the message into multiple responses (which may happen with NLM_F_DUMP).

We also do not filter on the default route. For IPv6, this led to selecting the first route with an RTA_GATEWAY attribute, often a non-default route instead of the actual default. This caused PCP port mapping failures because the wrong gateway was used.

Fix both issues by adding multi-part handling of responses and filter for the default route.

Limit responses to ~ 1MB to prevent any router-based DoS.

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 28, 2025

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/32159.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK achow101, davidgumberg, Sjors
Concept ACK laanwj

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@willcl-ark
Copy link
Member Author

cc @laanwj

This patch maintains the FreeBSD-style querying/filtering we have currently, but but increases the size of the response processed to a maximum of 1MB.

@laanwj laanwj added the P2P label Mar 28, 2025
@laanwj laanwj changed the title net, pcp: handle multi-part responses and filter... net, pcp: handle multi-part responses and filter for default route while querying default gateway Mar 28, 2025
@laanwj
Copy link
Member

laanwj commented Mar 28, 2025

Concept ACK

Adding 29.0 milestone, doesn't need to block the release but it would be nice to backport it.

Edit: removed, the milestone, i still think it'd be nice to have in next 29.x release, but it turns out more complicated and riskier than expected, better to have no immediate time pressure

@laanwj laanwj added this to the 29.0 milestone Mar 28, 2025
@laanwj laanwj requested review from vasild and Sjors March 28, 2025 15:10
std::memcpy(&gw, RTA_DATA(rta_gateway), sizeof(gw));
return CNetAddr(gw, scope_id);
for (nlmsghdr* hdr = (nlmsghdr*)response; NLMSG_OK(hdr, recv_result); hdr = NLMSG_NEXT(hdr, recv_result)) {
if (hdr->nlmsg_type == NLMSG_DONE) {
Copy link
Member

Choose a reason for hiding this comment

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

Is it guaranteed that the reponse to NLM_F_DUMP is always multipart? Or do we need to check nlmsg_flags for NLM_F_MULTI, and if not, break after the first packet?

This is not clear to me from the documentation:

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think it is, but like you am unsure about what the guarantees of the protocol are here.

I kind of reverse engineered this looking at miniupnpc and netlink sources, along with an strace of ip route show, which is where the repeated recv calls jumped out to me as a difference between our code and other tools.

This approach simply relies on receiving an NLMSG_DONE to signal the end of the response and break. This should handle both single and multi-part messages. Here's a snipped sample of strace -e filter=recvmsg ip route show on my system:

Details
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=NULL, iov_len=0}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_TRUNC}, MSG_PEEK|MSG_TRUNC) = 2932
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[[{nlmsg_len=1444, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1743240135, nlmsg_pid=3248093}, <snip> 0) = 2932
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=NULL, iov_len=0}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_TRUNC}, MSG_PEEK|MSG_TRUNC) = 3384
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[[{nlmsg_len=1504, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1743240135, nlmsg_pid=3248093}, <snip> 0) = 3384
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=NULL, iov_len=0}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_TRUNC}, MSG_PEEK|MSG_TRUNC) = 5196
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[[{nlmsg_len=1488, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1743240135, nlmsg_pid=3248093}, <snip> 0) = 5196
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=NULL, iov_len=0}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_TRUNC}, MSG_PEEK|MSG_TRUNC) = 20
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{nlmsg_len=20, nlmsg_type=NLMSG_DONE, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1743240135, nlmsg_pid=3248093}, 0], iov_len=32768}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 20
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=NULL, iov_len=0}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_TRUNC}, MSG_PEEK|MSG_TRUNC) = 424
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[[{nlmsg_len=76, nlmsg_type=RTM_NEWADDR, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1743240136, nlmsg_pid=3248093}, <snip> 0) = 424
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=NULL, iov_len=0}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_TRUNC}, MSG_PEEK|MSG_TRUNC) = 600
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[[{nlmsg_len=72, nlmsg_type=RTM_NEWADDR, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1743240136, nlmsg_pid=3248093}, <snip> 0) = 600
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=NULL, iov_len=0}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_TRUNC}, MSG_PEEK|MSG_TRUNC) = 20
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{nlmsg_len=20, nlmsg_type=NLMSG_DONE, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1743240136, nlmsg_pid=3248093}, 0], iov_len=32768}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 20

NLM_F_MULTI is indeed set, even in the NLMSG_DONE packet.

One other thing I did read about, but not implement, is checking of the sequence number on each message to ensure it was meant for our request. But as we only make a single request i thought this should be OK to omit.

Copy link
Member

@laanwj laanwj Mar 29, 2025

Choose a reason for hiding this comment

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

Thanks!

The receive flow here seems to indicate:

  • Receive packet
  • Process packet
  • If NLM_F_MULTI is set and the packet is not NLMSG_DONE, repeat

What i'm mostly worried about is that the current code will hang if NLMSG_DONE never comes, which seems to be the case for non-multi responses, which have one data packet.

But it may be that the NETLINK_ROUTE response to RTM_GETROUTE/NLM_F_DUMP is always multi-packet. That empirically seems to be the case even for tiny routing tables.

Looking at the ip source is a good idea. Also we need to verify this with FreeBSD.

But as we only make a single request i thought this should be OK to omit.

Agree, going that far in checking seems unnecessary. i don't think we need super defensive coding as netlink is a local protocol with the kernel.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, that infradead page is very handy!

I made a few changes in 6c694c2 based on your thoughts (and the protocol page):

  • set socket to non-blocking mode to avoid hanging if the kernel doesn't send a response
  • use a vector to collect all data from multi-part responses
  • exit when recv() returns 0 (this should handle single-part messages, AFAICT)

I think relying on receiving no more data from recv() to break the receive loop should be as (or perhaps more) robust than checking for the NLM_F_MULTI flag and exiting after first receive if it's not set, but curious what you think here?

If it would help, I'd be happy to break this into a few smaller commits, as I'm kinda feeling this change contains a few different changes in one in some ways now...

Copy link
Member

Choose a reason for hiding this comment

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

I think relying on receiving no more data from recv() to break the receive loop should be as (or perhaps more) robust than checking for the NLM_F_MULTI flag and exiting after first receive if it's not set, but curious what you think here?

Maybe-is it safe to assume that netlink will never block?

We don't want to end up in the same situation as before where we miss data. But due to say, a threading race condition.

i think the safest thing here is to mimic as closely as possible ip's behavior, as it is the only tool these kind of interfaces tend to be written towards.

Copy link
Member

@laanwj laanwj Mar 31, 2025

Choose a reason for hiding this comment

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

use a vector to collect all data from multi-part responses

i'm not sure i see the motivation here. Parsing the packets as seperate units is just as valid ("Multipart messages unlike fragmented ip packets must not be reassmbled"), avoids dynamic allocation, and is simpler.

Copy link
Member

Choose a reason for hiding this comment

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

checking of the sequence number on each message to ensure it was meant for our request

This seems like a good idea to at least do in debug builds.

It seems like a good precaution to check for the presence of NLM_F_MULTI and don't wait for NLMSG_DONE if it isn't. At least from my naive reading of https://man7.org/linux/man-pages/man7/netlink.7.html it seems NLMSG_DONE is only used for multipart messages.

Splitting into multiple commits would be useful, e.g. one commit that switches to non-blocking mode.

Copy link
Contributor

@davidgumberg davidgumberg Aug 28, 2025

Choose a reason for hiding this comment

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

Is it guaranteed that the reponse to NLM_F_DUMP is always multipart? Or do we need to check nlmsg_flags for NLM_F_MULTI, and if not, break after the first packet?

It seems that in the linux kernel, that is the case. A message type's (e.g. GETROUTE) message handling callback struct has a few callback functions, the .dumpit callback is called when you send a request with NLM_F_DUMP. Checking the .dumpit callbacks, the ones I find set NLM_F_MULTI in their responses, e.g. inet_dump_ifaddr which is a wrapper for inet_dump_addr is the is the .dumpit for RTM_GETADDR for IPv4 addresses,, and inet_dump_addr sets NLM_F_MULTI, and the same is true for the NLMSG_DONE that comes when the dump is complete:

static int netlink_dump_done(struct netlink_sock *nlk, struct sk_buff *skb,
			     struct netlink_callback *cb,
			     struct netlink_ext_ack *extack)
{
	nlh = nlmsg_put_answer(skb, cb, NLMSG_DONE, sizeof(nlk->dump_done_errno),
			       NLM_F_MULTI | cb->answer_flags);

https://github.com/torvalds/linux/blob/39f90c1967215375f7d87b81d14b0f3ed6b40c29/net/netlink/af_netlink.c#L2234

Grepping for NLMSG_DONE I think that netlink_dump_done is the only place NLMSG_DONE is used that's relevant to us, all of the other instances are in other netlink subsystems, so we only get NLMSG_DONE in reply to NLM_F_DUMP, but I think this is the case even when we don't get a multipart message, since netlink_dump_done is always invoked when sending a request with NLM_F_DUMP I believe.

@willcl-ark willcl-ark force-pushed the pcp-default-multipart branch from c5211f3 to 6c694c2 Compare March 31, 2025 08:04
Copy link
Member

@Sjors Sjors left a comment

Choose a reason for hiding this comment

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

Although the code this PR touches isn't compiled on macOS, I did briefly check that things still work there. I also briefly tested on Ubuntu 24.10.

Left some inline question to wrap my head around the changes and refresh my memory of the original...

int64_t recv_result;
do {
recv_result = sock->Recv(temp, sizeof(temp), 0);
} while (recv_result < 0 && (errno == EINTR || errno == EAGAIN));
Copy link
Member

Choose a reason for hiding this comment

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

Since you're touching this line... According to the internet, we should also check EWOULDBLOCK even though it's usually the same as EAGAIN, and it's likely not relevant for any system we support.
https://stackoverflow.com/a/49421517

Copy link
Contributor

Choose a reason for hiding this comment

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

Might be helpful:

static inline bool IOErrorIsPermanent(int err)
{
return err != WSAEAGAIN && err != WSAEINTR && err != WSAEWOULDBLOCK && err != WSAEINPROGRESS;
}

char temp[4096];
int64_t recv_result;
do {
recv_result = sock->Recv(temp, sizeof(temp), 0);
Copy link
Member

Choose a reason for hiding this comment

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

I know this is existing code, but I don't recall why there's no timeout here. And also, should there be a quick wait between Recv calls?

std::memcpy(&gw, RTA_DATA(rta_gateway), sizeof(gw));
return CNetAddr(gw, scope_id);
for (nlmsghdr* hdr = (nlmsghdr*)response; NLMSG_OK(hdr, recv_result); hdr = NLMSG_NEXT(hdr, recv_result)) {
if (hdr->nlmsg_type == NLMSG_DONE) {
Copy link
Member

Choose a reason for hiding this comment

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

checking of the sequence number on each message to ensure it was meant for our request

This seems like a good idea to at least do in debug builds.

It seems like a good precaution to check for the presence of NLM_F_MULTI and don't wait for NLMSG_DONE if it isn't. At least from my naive reading of https://man7.org/linux/man-pages/man7/netlink.7.html it seems NLMSG_DONE is only used for multipart messages.

Splitting into multiple commits would be useful, e.g. one commit that switches to non-blocking mode.

@laanwj laanwj removed this from the 29.0 milestone Apr 1, 2025
@willcl-ark
Copy link
Member Author

Thanks for the review @Sjors & @laanwj.

Going to move to draft while I re-work it a little.

@willcl-ark willcl-ark marked this pull request as draft April 1, 2025 09:26
@willcl-ark willcl-ark force-pushed the pcp-default-multipart branch from 6c694c2 to 92343a6 Compare April 1, 2025 14:27
Filter netlink responses to only consider default routes by checking the
destination prefix length (rtm_dst_len == 0).

Previously, we selected the first route with an RTA_GATEWAY attribute,
which for IPv6 often resulted in choosing a non-default route instead of
the actual default.

This caused occasional PCP port mapping failures because a gateway for a
non-default route was selected.
This shouldn't usually be hit, but is a good belt-and-braces.
@willcl-ark willcl-ark force-pushed the pcp-default-multipart branch 2 times, most recently from d878853 to 4c53178 Compare April 2, 2025 11:05
@DrahtBot
Copy link
Contributor

DrahtBot commented Apr 2, 2025

🚧 At least one of the CI tasks failed.
Debug: https://github.com/bitcoin/bitcoin/runs/39838257320

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

@DrahtBot DrahtBot removed the CI failed label Apr 2, 2025
@willcl-ark
Copy link
Member Author

After (additional) further investigation I gained some new insights:

  • This is not a regression from migration from libnatpmp as I first thought.

  • The extent to which tailscale interferes with the routing is more significant than I realised:
    Even if we find the correct gateway (by handling multi-part messages and filtering properly), the route to the gateway still doesn't return the data we want, specifically the correct interface.
    This causes us to make an invalid request, which gets rejected.

    This is also observed using the ip command:

    $ ip route show
    default via 10.0.0.1 dev wlo1 proto dhcp src 10.0.12.100 metric 600
    10.0.0.0/20 dev wlo1 proto kernel scope link src 10.0.12.100 metric 600
    172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
    192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown
    
    will@ubuntu in …/src/core/bitcoin on  pcp-default-multipart [$?⇕] : C v19.1.7-clang via △ v3.31.6 : 🐍 (core)
    $ ip route get 10.0.0.1
    10.0.0.1 dev tailscale0 table 52 src 100.89.20.73 uid 1000
        cache

    Handling this would be quite invasive, require tracking the interface, and I don't think it's in scope for us.

Therefore I have re-worked and split the remaining changes and into 3 commits:

  1. Filter for the default route in the response. With this change ipv6 pinholing works even with tailscale up, which is quite nice.
  2. Skip non NEWROUTE messages. Although NLMSG_DONE is already handled, this is a slight optimisation in protecting against unexpected responses being parsed.
  3. Handle single and multi-part messages. Track if NLM_F_MULTI was set and if so wait for NLMSG_DONE, otherwise break after the first response, assuming a single-part response.

I think these are all worthwhile, but I could seean argument that what we currently have works "well enough" for the most basic use-case; a simple (single) routing table. And we could just consider anything else out-of-scope in this project.

@Sjors: Ref your comments, the socket is set as nonblocking already via the implementation in CreateSockOS in

bitcoin/src/netbase.cpp

Lines 536 to 540 in 74d9598

// Set the non-blocking option on the socket.
if (!sock->SetNonBlocking()) {
LogPrintf("Error setting socket to non-blocking: %s\n", NetworkErrorString(WSAGetLastError()));
return nullptr;
}
I did try a commit to add a backoff timer and retry mechanism to this for extra safety, but pretty sure it's not worth the added complexity.

@willcl-ark willcl-ark marked this pull request as ready for review April 2, 2025 13:56
@fanquake
Copy link
Member

fanquake commented May 8, 2025

@laanwj you might be interested in circling back here to review?

@laanwj laanwj self-requested a review May 9, 2025 11:21
@laanwj
Copy link
Member

laanwj commented May 13, 2025

you might be interested in circling back here to review?

Yes, will look into it.

This is not a regression from migration from libnatpmp as I first thought.

Removed the backport label as this was confirmed not to be a regression (thanks!).

@fanquake fanquake added this to the 30.0 milestone Jul 17, 2025
@fanquake
Copy link
Member

Put this on the v30.0 milestone.

@achow101
Copy link
Member

ACK 4c53178

Verified against iproute2 and strace

Comment on lines 111 to 112
rtmsg* r = (rtmsg*)NLMSG_DATA(hdr);
int remaining_len = RTM_PAYLOAD(hdr);
Copy link
Member

Choose a reason for hiding this comment

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

These could be moved after if (hdr->nlmsg_type == NLMSG_DONE) { to avoid the integer sanitizer warning in #33245

// Only consider default routes (destination prefix length of 0).
if (r->rtm_dst_len != 0) {
continue;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

In 57ce645 (net: filter for default routes in netlink responses)

Just info for other reviewers, I found this useful since I'm generally unfamiliar with how routing and gateways work:

As I understand, the destination prefix is a mask indicating what routes the gateway can be used for, a destination prefix of 0 (alternatively 0.0.0.0 or ::0) indicates that the gateway can be used for all destinations, and RFC 1812 offers this right above the beginning of section 5.2.4.4:

(5) Default Route: This is a route to all networks for which there are no explicit routes. It is by definition the route whose prefix length is zero.

Copy link
Contributor

@davidgumberg davidgumberg Aug 28, 2025

Choose a reason for hiding this comment

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

Relevant (editorialized) code from iproute2:

	if (tb[RTA_DST]) {
        // [...if the route has a specific destination, e.g.] ip route add 192.168.0.5 via  192.168.0.4
	} else if (r->rtm_dst_len) {
        // [if the route has prefix has a length]
		snprintf(b1, sizeof(b1), "0/%d ", r->rtm_dst_len);
	} else {
        // [if rtm_dst_len == 0]
		strncpy(b1, "default", sizeof(b1));
	}

https://github.com/iproute2/iproute2/blob/3337e5013e168bcf4fab5f6518d1e4293a0a830b/ip/iproute.c#L833-L851

@@ -97,6 +97,10 @@ std::optional<CNetAddr> QueryDefaultGatewayImpl(sa_family_t family)
rtmsg* r = (rtmsg*)NLMSG_DATA(hdr);
int remaining_len = RTM_PAYLOAD(hdr);

if (hdr->nlmsg_type != RTM_NEWROUTE) {
continue; // Skip non-route messages
}
Copy link
Contributor

Choose a reason for hiding this comment

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

In 42e99ad (net: skip non-route netlink responses)

The man 7 rtnetlink page (https://man7.org/linux/man-pages/man7/rtnetlink.7.html) does not really offer much insight here, but as far as I can tell, the convention comes from the fact that the rtnetlink interface is also used for monitoring changes to the kernel's routing table, and because the userspace application is trying to maintain an idea of the kernel routing table's state, the interfaces are symmetrical, a userspace application sends an RTM_NEWROUTE when it wants to insert a new route, and likewise whenever the kernel inserts a new route, it sends out an RTM_NEWROUTE message over open NETLINK_ROUTE sockets, so the reply to an RTM_GETROUTE follows this convention and replies with RTM_NEWROUTE, and I imagine the same is true for GETADDR and GETLINK

Looking through the linux kernel's implementation for evidence of this:

e.g. inet_rtm_getroute is the kernel's callback that handles RTM_GETROUTE messages for IPv4 routes, and here is a simplified + annotated view of the relevant section of that function:

static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
			     struct netlink_ext_ack *extack)
{
	// [....]

	// [ This is never true for us. ]
	if (rtm->rtm_flags & RTM_F_FIB_MATCH) {
		// [ fib_dump_info populates sk_buff* skb, which holds packet data,
		//   and places the `event` arg in the nlmsg hdr->nlmsg_type
		//   https://github.com/torvalds/linux/blob/39f90c1967215375f7d87b81d14b0f3ed6b40c29/net/ipv4/fib_semantics.c#L1732
		// ]
		fib_dump_info(skb, NETLINK_CB(in_skb).portid,
				    nlh->nlmsg_seq,/*event=*/RTM_NEWROUTE, &fri, 0);
	} else {
		// [ This case is relevant for us, rt_fill_info always creates an RTM_NEWROUTE message.]
		//   https://github.com/torvalds/linux/blob/39f90c1967215375f7d87b81d14b0f3ed6b40c29/net/ipv4/route.c#L2951
		rt_fill_info(net, dst, src, rt, table_id, res.dscp, &fl4,
				   skb, NETLINK_CB(in_skb).portid,
				   nlh->nlmsg_seq, 0);
	}

	// [ Broadcast the `skb` on the socket. ]
	rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
}

// [ https://github.com/torvalds/linux/blob/39f90c1967215375f7d87b81d14b0f3ed6b40c29/net/ipv4/route.c#L2939-L2951 ]
static int rt_fill_info(
    // [...]
)
{
	nlh = nlmsg_put(skb, portid, seq, RTM_NEWROUTE, sizeof(*r), flags);
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Relevant section of iproute2, if a response to getroute is not of type RTM_NEWROUTE, it's an error:

static int iproute_get(int argc, char **argv)
        // [... `Populate answer` ]
		struct rtmsg *r = NLMSG_DATA(answer);
		if (answer->nlmsg_type != RTM_NEWROUTE) {
			fprintf(stderr, "Not a route?\n");
			delete_json_obj();
			free(answer);
			return -1;
		}
}

https://github.com/iproute2/iproute2/blob/3337e5013e168bcf4fab5f6518d1e4293a0a830b/ip/iproute.c#L2242-L2247

for (rtattr* attr = RTM_RTA(r); RTA_OK(attr, remaining_len); attr = RTA_NEXT(attr, remaining_len)) {
if (attr->rta_type == RTA_GATEWAY) {
rta_gateway = attr;
} else if (attr->rta_type == RTA_OIF && sizeof(int) == RTA_PAYLOAD(attr)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

For context on this, IPv6 allows "scoped addresses", e.g. I can send a packet to a non-globally unique address, like a link-local address that has two destinations on two different links, so in order to disambiguate scoped addresses RFC4007#section-6 recommends the use of unique zone indexes:

Because the same non-global address may be in use in more than one zone of the same scope (e.g., the use of link-local address fe80::1 in two separate physical links) and a node may have interfaces attached to different zones of the same scope (e.g., a router normally has multiple interfaces attached to different links), a node requires an internal means to identify to which zone a non-global address belongs. This is accomplished by assigning, within the node, a distinct "zone index" to each zone of the same scope to which that node is attached, and by allowing all internal uses of an address to be qualified by a zone index.

And RFC4007#section-7 suggests that specifying an output interface index as the zone index is sufficient, but more specific than necessary to disambiguate:

When an upper-layer protocol sends a packet to a non-global destination address, it must have a means of identifying the intended zone to the IPv6 layer for cases in which the node is attached to more than one zone of the destination address's scope.
Although identification of an outgoing interface is sufficient to identify an intended zone (because each interface is attached to no more than one zone of each scope), in many cases that is more specific than desired.

The name used in the rtnetlink interface (RTA_OIF) suggest that the unique scope ID / zone ID used is the output interface index (OIF), but I guess that's an implementation detail, the point is, it's a unique index that makes an IPv6 address globally unique from the POV of a given device.

Comment on lines 114 to 111
processed_one = true;
if (hdr->nlmsg_flags & NLM_F_MULTI) {
multi_part = true;
}
Copy link
Contributor

@davidgumberg davidgumberg Aug 28, 2025

Choose a reason for hiding this comment

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

In 4c53178 (net: handle multi-part netlink responses)

nit:

processed_one, multi_part and the check at the bottom of the outer for loop could be dropped, with the following check:

Suggested change
processed_one = true;
if (hdr->nlmsg_flags & NLM_F_MULTI) {
multi_part = true;
}
if (!(hdr->nlmsg_flags & NLM_F_MULTI)) {
done = true;
}

Copy link
Member

@Sjors Sjors Sep 1, 2025

Choose a reason for hiding this comment

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

A slightly different approach, which avoids confusing NLMSG_DONE with done:

diff --git a/src/common/netif.cpp b/src/common/netif.cpp
index 77246980c3..3f3b8fdcea 100644
--- a/src/common/netif.cpp
+++ b/src/common/netif.cpp
@@ -117,9 +117,10 @@ std::optional<CNetAddr> QueryDefaultGatewayImpl(sa_family_t family)
     // Receive response.
     char response[4096];
     ssize_t total_bytes_read{0};
-    bool done{false};
-    bool multi_part{false};
-    while (!done) {
+    // If we processed at least one message and multi flag not set, or if
+    // we received no valid messages, then we're done.
+    bool maybe_more{true};
+    while (maybe_more) {
         int64_t recv_result;
         do {
             recv_result = sock->Recv(response, sizeof(response), 0);
@@ -135,18 +136,16 @@ std::optional<CNetAddr> QueryDefaultGatewayImpl(sa_family_t family)
             return std::nullopt;
         }
 
-        bool processed_one{false};
         for (nlmsghdr* hdr = (nlmsghdr*)response; NLMSG_OK(hdr, recv_result); hdr = NLMSG_NEXT(hdr, recv_result)) {
             rtmsg* r = (rtmsg*)NLMSG_DATA(hdr);
             int remaining_len = RTM_PAYLOAD(hdr);
 
-            processed_one = true;
-            if (hdr->nlmsg_flags & NLM_F_MULTI) {
-                multi_part = true;
-            }
+            if (!(hdr->nlmsg_flags & NLM_F_MULTI)) {
+                maybe_more = false;
+            };
 
             if (hdr->nlmsg_type == NLMSG_DONE) {
-                done = true;
+                maybe_more = false;
                 break;
             }
 
@@ -183,12 +182,6 @@ std::optional<CNetAddr> QueryDefaultGatewayImpl(sa_family_t family)
                 }
             }
         }
-
-        // If we processed at least one message and multi flag is not set,
-        // or if we received no valid messages, then we're done.
-        if ((processed_one && !multi_part) || !processed_one) {
-            done = true;
-        }
     }
 
     return std::nullopt;

@davidgumberg
Copy link
Contributor

untested crACK 4c53178

57ce645 corrects a bug where QueryDefaultGatewayImpl would return not default gateways.

42e99ad adds a belt and suspenders check that we have received a sensible reply to our GETROUTE message.

4c53178 correctly handles multi-part messages, I believe the current implementation would fail e.g. any time the reply to our GETROUTE was in excess of 4096 bytes

I left a few non-blocking nits, and comments that provide some context that I had to look for when reviewing the changes here.

@Sjors
Copy link
Member

Sjors commented Sep 1, 2025

utACK 4c53178

I didn't specifically test multipart messages.

I did test this (rebased) PR with a router running OPNsense 25.7.2 with miniupnpd 2.3.9 using pf backend.

From a macOS 15.6.1 machine and macOS 13.7.8 machine I can see it opens a port and I'm (still) getting inbound connections. This is unsurprising, because the changes here don't impact macOS.

I also tested on Ubuntu 25.04

@hodlinator
Copy link
Contributor

Tested but did not dig deep into the code for now. Spent more than a day adding debug code in Bitcoin Core and fighting with my OpenWrt router (openwrt/packages#17871 (comment)). Now that the router has been fully reset without any lingering configs from prior major versions, PCP & NATPMP is actually working.

On master (in 7/7 attempts roughly):

₿ cmake --build build -j16 --target=bitcoind && ./build/bin/bitcoind -regtest -debug=net
...
Bitcoin Core version v29.99.0-74d9598bfbc2 (release build)
[warning] Option '-upnp=true' is given but UPnP support was dropped in version 29.0. Substituting '-natpmp=true'.
...
[net] portmap: gateway [IPv4]: 192.168.1.1
[net] pcp: Requesting port mapping for addr 0.0.0.0 port 18444 from gateway 192.168.1.1
[net] pcp: Internal address after connect: 192.168.1.201
AddLocal([1111:1111::1]:18444,1)
Discover: 1111:1111::1
Bound to 127.0.0.1:18445
Bound to [::]:18444
Bound to 0.0.0.0:18444
Loaded 0 addresses from "anchors.dat"
0 block-relay-only anchors will be tried for connections.
init message: Starting network threads…
net thread start
init message: Done loading
opencon thread start
addcon thread start
msghand thread start
dnsseed thread start
Loading addresses from DNS seed dummySeed.invalid.
0 addresses found from DNS seeds
dnsseed thread exit
[net] pcp: Received response of 60 bytes: REDACTED...
[net:info] portmap: Added mapping pcp:< REDACTED  >:18450 -> 192.168.1.201:18444 (for 2400s)
AddLocal(< REDACTED  >:18450,3)
[net] portmap: gateway [IPv6]: fe80::REDACTED...
[net] pcp: Requesting port mapping for addr 1111:1111::1 port 18444 from gateway fe80::REDACTED...
[net] pcp: Internal address after connect: 1111:1111::1
[net] pcp: Received response of 60 bytes: REDACTED...
[net:warning] pcp: Mapping failed with result ADDRESS_MISMATCH (code 12)

On the router side:

... daemon.err miniupnpd[14402]: PCP: Invalid PCP v2 MAP message.

Taking the first commit (57ce645) from this PR makes the output towards the end better (my ISP doesn't support IPv6):

[net] pcp: Received response of 60 bytes: REDACTED...
[net:info] portmap: Added mapping pcp:< REDACTED  >:18464 -> 192.168.1.201:18444 (for 2400s)
AddLocal(< REDACTED  >:18464,3)
[net] portmap: Could not determine IPv6 default gateway

And there is no longer any error in the router log.

So PCP+IPv4 mostly works regardless of the PR, but at least the failure path for IPv6 is improved by it.

Haven't really noticed any changes in behavior with my setup from the latter 2 commits.

Might focus on other things for now as this already has 3 ACKs.

@Sjors
Copy link
Member

Sjors commented Sep 2, 2025

Now that the router has been fully reset without any lingering configs from prior major versions, PCP & NATPMP is actually working.

You would not be the first person running into router bugs while testing NAT punching functionality :-)

Handle multi-part netlink responses to prevent truncated results from
large routing tables.

Previously, we only made a single recv call, which led to incomplete
results when the kernel split the message into multiple responses (which
happens frequently with NLM_F_DUMP).

Also guard against a potential hanging issue where the code would
indefinitely wait for NLMSG_DONE for non-multi-part responses by
detecting the NLM_F_MULTI flag and only continue waiting when necessary.
@willcl-ark willcl-ark force-pushed the pcp-default-multipart branch from 4c53178 to 88db09b Compare September 3, 2025 20:10
@achow101
Copy link
Member

achow101 commented Sep 3, 2025

ACK 88db09b

@davidgumberg
Copy link
Contributor

Code Review re-ACK 88db09b

$ git range-diff 4c53178...88db09b

88db09b takes the reviewer suggestion of moving the rtmsg* cast after checking if hdr->nlmsg_type == NLMSG_DONEwhich resolves #33245 and implements a suggested refactor that simplifies the multi-message/done state tracking in the NLMSG_NEXT loop.

@Sjors
Copy link
Member

Sjors commented Sep 4, 2025

re-utACK 88db09b

@fanquake fanquake merged commit 2562fe1 into bitcoin:master Sep 4, 2025
20 checks passed
@ryanofsky
Copy link
Contributor

Do we know if this change might fix the integer overflow error reported #32345 (comment)?

@willcl-ark
Copy link
Member Author

I moved variables as per #32159 (comment) to try and fix this in here. I did not verify whether it worked, however.

alexanderwiederin added a commit to alexanderwiederin/rust-bitcoinkernel that referenced this pull request Sep 16, 2025
…c35e5bbe6

adc35e5bbe6 add btck_blockreader_read_block method
d43ca58d363 add get_validated_chain method
4ba83d59f27 Add first methods to blockreader
4b980dd5e81 add Handler to blockreader.cpp
1049f29c921 add impl for blockreader
0909723f63d add blockreader header file
b22200af854 add blockreader_opts
6c5488893b4 add basic methods to c header
97ad9f574d3 WIP: scaffolding
ffa2b746dda Add directory locking and read-only mode for BlockTreeStore
ce5b80db176 Flush disk writes when not in initial block download
f2926f8e2bf fix: remove in memory test for kernel
b93a169b1dc blockstorage: Remove BlockTreeDB dead code
7cab96bc99e kernel: Add assumed header store to chainparams
065b02d2e1b kernel: Remove block tree db params
7a6d0c725ca blockstorage: Replace BlockTreeDB with BlockTreeStore
b63afb30249 fuzz: Use BlockTreeStore in block index fuzz test
131f742bcb9 kernel: Add blocktreestorage module
e450549ae94 kernel: Fix bitcoin-chainstate for windows
c7cd7331be5 kernel: Add Purpose section to header documentation
de793c8255c kernel: Allowing reducing exports
a71138dfa54 kernel: Add pure kernel bitcoin-chainstate
a81e68c5be3 kernel: Add functions to get the block hash from a block
84ab95e70f4 kernel: Add block index utility functions to C header
461e4e75700 kernel: Add function to read block undo data from disk to C header
16aa4f40a8f kernel: Add functions to read block from disk to C header
c78602e0042 kernel: Add function for copying block data to C header
b51c9ac6319 kernel: Add functions for the block validation state to C header
8b9ca40af60 kernel: Add validation interface to C header
a7e2388a232 kernel: Add interrupt function to C header
99ef8fd4846 kernel: Add import blocks function to C header
e0f41a82d1e kernel: Add chainstate load options for in-memory dbs in C header
99995495565 kernel: Add options for reindexing in C header
f2f8ec99b7c kernel: Add block validation to C header
2779ed23f6e kernel: Add chainstate loading when instantiating a ChainstateManager
69311cfdef9 kernel: Add chainstate manager option for setting worker threads
b02f62573d5 kernel: Add chainstate manager object to C header
dc4c23c0ada kernel: Add notifications context option to C header
190395959d0 kernel: Add chain params context option to C header
137a10c2939 kernel: Add kernel library context object
d61fc331241 kernel: Add logging to kernel library C header
7d4163c0afa kernel: Introduce initial kernel C header API
d20f10affba Merge bitcoin/bitcoin#33268: wallet: Identify transactions spending 0-value outputs, and add tests for anchor outputs in a wallet
9a5ba154bea Merge bitcoin/bitcoin#33310: trace: Workaround GCC bug compiling with old systemtap
853f0d88114 Merge bitcoin/bitcoin#33364: ci: always use tag for LLVM checkout
b81445333a1 Merge bitcoin/bitcoin#33243: test: Fix CLI_MAX_ARG_SIZE issues
f757da87f59 Merge bitcoin/bitcoin#33332: common: Make arith_uint256 trivially copyable
e416dc2fbbb Merge bitcoin/bitcoin#33321: kernel: make blockTip index const
176fac0f16d Merge bitcoin/bitcoin#33141: test: Remove polling loop from test_runner (take 2)
593d5fe37d7 Merge bitcoin/bitcoin#33354: txgraph: use enum Level instead of bool main_only
653a9849d5f common: Make arith_uint256 trivially copyable
b736052e39f ci: always use tag for LLVM checkout
d45f3717d2c txgraph: use enum Level instead of bool main_only
ee42d59d4de Merge bitcoin-core/gui#886: Avoid pathological QT text/markdown behavior...
2c8a478db4b Merge bitcoin/bitcoin#33231: net: Prevent node from binding to the same `CService`
591eea7b5ac Merge bitcoin/bitcoin#33082: wallet, refactor: Remove Legacy check and error
6a371b70c87 gui: Avoid pathological QT text/markdown behavior...
c0894a0a2be Merge bitcoin/bitcoin#33348: contrib: add bitcoin binary to gen-manpages
53e6db91ef5 contrib: add placeholder manpage for bitcoin binary
f5887a8de4c contrib: add bitcoin binary to gen-manpages
314c42b55bd Merge bitcoin/bitcoin#33347: build: bump `CLIENT_VERSION_MAJOR` to 30
9f744fffc39 build: bump CLIENT_VERSION_MAJOR to 30
042817ddb84 Merge bitcoin/bitcoin#33346: doc: remove release note fragment
0f0e6fe7f5f doc: remove release note fragment
84cf5420398 Merge bitcoin/bitcoin#33275: Release: 30.0 translations update
13809b867ad Merge bitcoin/bitcoin#33303: ci: Checkout latest merged pulls
e749205f83d Merge bitcoin/bitcoin#33319: ci: reduce runner sizes on various jobs
9cbd346daa5 Merge bitcoin/bitcoin#33340: Fix benchmark CSV output
4776179be9f Merge bitcoin/bitcoin#33342: guix: strip binaries in libexec
0ba44d9c38a Merge bitcoin/bitcoin#33296: net: check for empty header before calling FillBlock
1861030bea7 Merge bitcoin/bitcoin#30469: index: Fix coinstats overflow
8b626476803 test: send duplicate blocktxn message in p2p_compactblocks.py
5e585a0fc4f net: check for empty header before calling FillBlock
cb825a07ac6 Merge bitcoin/bitcoin#33338: net: Add interrupt to pcp retry loop
0b0bd74c3e9 Merge bitcoin/bitcoin#33312: clang-tidy: Disable `UndefinedBinaryOperatorResult` check in `src/ipc`
790b440197b Fix benchmark CSV output
3cceda9f485 guix: strip binaries in libexec
3eea9fd3953 Merge bitcoin/bitcoin#33308: doc: fix `LIBRARY_PATH` comment
0b38cc9bf7a Merge bitcoin/bitcoin#33339: doc: move release notes to wiki pre branch off
b320f5efa17 qt: 30.0 translations update
905c1a77f51 doc: move release notes to wiki pre branch off
2d799590fee Merge bitcoin/bitcoin#33283: contrib: update fixed seeds
188de70c864 net: Add interrupt to pcp retry loop
9c6fa07b124 Merge bitcoin/bitcoin#33322: Update libmultiprocess subtree to improve build and logs
c7679748115 clang-tidy: Fix critical warnings
54dc34ec227 index: Remove unused coinstatsindex recovery code
37c4fba1f4c index: Check BIP30 blocks when rewinding Coinstatsindex
51df9de8e5b doc: Add release note for 30469
bb8d6731832 test: Add coinstatsindex compatibility test
b2e8b64ddc3 index, refactor: Append blocks to coinstatsindex without db read
431a076ae6e index: Fix coinstatsindex overflow issue
fa8f081af31 ci: Checkout latest merged pulls
36e40417de3 Merge bitcoin-core/gui#884: Fix compatibility with `-debuglogfile` command-line option
a4ee70e5b69 Merge commit 'a334bbe9b79ddf1999003c792bc8945639b7e9c1' into pr/subtree-4
a334bbe9b79 Squashed 'src/ipc/libmultiprocess/' changes from 1b8d4a6f1e54..13424cf2ecc1
e04cb9c1bdf Merge bitcoin/bitcoin#33201: Add functional test for IPC interface
75d9b724757 kernel: make blockTip index const
a341e11ac92 ci: test IPC on additional hosts
6aee573bfcf ci: enable IPC tests in CI
8d2ee88fa2a tests: add functional tests for IPC interface
3cc9a06c8dd test: Add TestNode ipcbind option
3cceb60a715 test: Provide path to `bitcoin` binary
8c7f0056291 test: add is_ipc_compiled() and skip_if_no_ipc() functions
37c21ebe407 Merge bitcoin/bitcoin#33309: doc: archive v29.1 release notes
32e2484b67e Merge bitcoin/bitcoin#33304: depends: strip when installing qt binaries
4d4789dffad net: Prevent node from binding to the same CService
647cdb4f7e8 Merge bitcoin/bitcoin#33311: net: Quiet down logging when router doesn't support natpmp/pcp
589b65f06c3 clang-tidy: Disable `UndefinedBinaryOperatorResult` check in `src/ipc`
4f1a4cbccd7 net: Quiet down logging when router doesn't support natpmp/pcp
93a29ff2830 trace: Workaround GCC bug compiling with old systemtap
5eeb2facbbb ci: reduce runner sizes on various jobs
61ec8866c63 [doc] archive v29.1 release notes
a2a35b58cb9 doc: fix LIBRARY_PATH comment
e1ce0c525c7 Merge bitcoin/bitcoin#33291: ci: cd into BASE_BUILD_DIR for GetCMakeLogFiles
84e813a02bb index, refactor: DRY coinbase check
fab842b3248 index, refactor: Rename ReverseBlock to RevertBlock
2d8f5b91881 Merge bitcoin/bitcoin#33136: ci: Remove redundant RUN_UNIT_TESTS_SEQUENTIAL
c9d5f211c11 depends: strip when installing qt
fae610d8581 ci: Remove redundant RUN_UNIT_TESTS_SEQUENTIAL
2562fe1b2b6 Merge bitcoin/bitcoin#32159: net, pcp: handle multi-part responses and filter for default route while querying default gateway
ed2ff3c63d8 Merge bitcoin/bitcoin#33235: build: set ENABLE_IPC to OFF when fuzzing
88db09bafe9 net: handle multi-part netlink responses
113a4228229 wallet: Add m_cached_from_me to cache "from me" status
609d265ebc5 test: Add a test for anchor outputs in the wallet
c40dc822d74 wallet: Throw an error in sendall if the tx size cannot be calculated
39a7dbdd277 wallet: Determine IsFromMe by checking for TXOs of inputs
e76c2f7a411 test: Test wallet 'from me' status change
689a3219763 Merge bitcoin/bitcoin#33220: doc: truc packages allow sub min feerate transactions
9b76eef2d2b ci: cd into BASE_BUILD_DIR for GetCMakeLogFiles
939678940f6 contrib: update fixed seeds
6cdd8ee6761 contrib: update makeseeds minblocks
b8da9f4034e contrib: update makeseeds UA regex
ba0b4304ece Merge bitcoin/bitcoin#32989: ci: Migrate CI to hosted Cirrus Runners
0eb3eae5486 Merge bitcoin/bitcoin#33274: kernel: chainparams & headersync updates for 30.0
fa4885ef2fd test: Remove polling loop from test_runner
7270839af42 doc: truc packages allow sub min feerate transactions
46369583f3a Merge bitcoin/bitcoin#33224: doc: unify `datacarriersize` warning with release notes
755152ac819 kernel: add testnet4 assumeutxo param at height 90'000
a6512686e33 kernel: add mainnet assumeutxo param at height 910'000
943de66b504 kernel: update headersync params
66fb9624264 kernel: update chainTxData
c3cb26e0283 kernel: update assumevalid and minimumChainWork
b4adae76d46 kernel: update assumed blockchain & chainstate sizes
7e58c94112d Merge bitcoin/bitcoin#33269: test: Fixup fill_mempool docstring
3c5da69a232 ci: remove un-needed lint_run*.sh files
2aa288efdda ci: fix annoying docker warning
dd1c5903e8d ci: add ccache hit-rate warning when < 75%
f4272844833 doc: Detail configuration of hosted CI runners
3f339e99e00 ci: dynamically match makejobs with cores
4393ffdd837 ci: remove .cirrus.yml
bc41848d00f ci: port lint
d290a8e6eab ci: port msan-depends
9bbae61e3b4 ci: port tsan-depends
bf7d5364527 ci: port tidy
549074bc643 ci: port centos-depends-gui
58e38c3a042 ci: port previous-releases-depends-debug
341196d75c3 ci: port fuzzer-address-undefined-integer-nodepends
f2068f26c12 ci: port no-IPC-i686-DEBUG
2a00b12d73b ci: port nowallet-libbitcoinkernel
9c2514de534 ci: port mac-cross-gui-notests
2c990d84a3d ci: force reinstall of kernel headers in asan
884251441bb ci: update asan-lsan-ubsan
f253031cb8e ci: port arm 32-bit job
04e7bfbceb0 ci: update windows-cross job
cc1735d7771 ci: add job to determine runner type
020069e6b71 ci: add Cirrus cache host
9c2b96e0d03 ci: have base install run in right dir
18f6be09d02 ci: use docker build cache arg directly
94a09325475 ci: use buildx in ci
fdf64e55324 ci: add configure-docker action
33ba073df7a ci: add REPO_USE_CIRRUS_RUNNERS
b232b0fa5e9 ci: add caching actions
b8fcc9fcbcd ci: add configure environment action
fa3f682032a test: Fixup fill_mempool docstring
7cc9a087069 Merge bitcoin/bitcoin#33253: Revert compact block cache inefficiencies
084fd68fda2 Merge bitcoin/bitcoin#33258: ci: use LLVM 21
6ff2d423625 Merge bitcoin/bitcoin#33189: rpc: followups for 33106
4d54bb2b92c Merge bitcoin/bitcoin#33264: threading: reduce the scope of lock in getblocktemplate
9ae23950ef8 Merge bitcoin/bitcoin#33261: ci: return to using dash in CentOS job
493ba0f6883 threading: reduce the scope of lock in getblocktemplate
509ffea40ab ci: return to using dash in CentOS job
b7b249d3adf Revert "[refactor] rewrite vTxHashes as a vector of CTransactionRef"
b9300d8d0a7 Revert "refactor: Simplify `extra_txn` to be a vec of CTransactionRef instead of a vec of pair<Wtxid, CTransactionRef>"
df5a50e5de2 bench/blockencodings: add compact block reconstruction benchmark
4cf0ae474ba ci: use LLVM 21
fa96a4afea2 ci: Enable CI_LIMIT_STACK_SIZE=1 in i686_no_ipc task
facfde2cdce test: Fix CLI_MAX_ARG_SIZE issues
6ca6f3b37b9 Merge bitcoin/bitcoin#33241: Update libmultiprocess subtree to fix build issues
9703b7e6d56 Merge bitcoin/bitcoin#32592: threading: remove ancient CRITICAL_SECTION macros
dd68d0f40b6 Squashed 'src/ipc/libmultiprocess/' changes from b4120d34bad2..1b8d4a6f1e54
323b3fd2728 Merge commit 'dd68d0f40b614474f24469fbe1ba02f8f9146b31' into pr/subtree-3
d3c5e47391e wallet, refactor: Remove Legacy check and error
73220fc0f95 Merge bitcoin/bitcoin#33212: index: Don't commit state in BaseIndex::Rewind
46ca7712cb5 threading: remove unused template instantiations
b537a6a6dbd threading: remove obsolete critsect macros
0d0e0a39b4a threading: use a reverse lock rather than manual critsect macros
3ddd554d318 tests: Add Assertions in reverse_lock tests to exercise thread-safety annotations
c88b1cbf57a tests: get rid of remaining manual critsect usage
2c223de2af7 Merge bitcoin/bitcoin#33237: doc: use new block_to_connect parameter name
02f6758e0ce Merge bitcoin/bitcoin#33233: doc: follow-ups to "Add bitcoin-{node,gui} to release binaries for IPC"
682bd04462d Merge bitcoin/bitcoin#33236: doc: Remove wrong and redundant doxygen tag
a9701de0c9f Merge bitcoin/bitcoin#33217: depends: remove xinerama extension from libxcb
78351ed083b Merge bitcoin/bitcoin#33222: miner: clamp options instead of asserting
de65c86572c doc: capnproto instruction for Alpine and Arch
49d1a1a3630 doc: add capnproto-devel to Fedora build instruction
a602f6fb7bf test: index with an unclean restart after a reorg
01b95ac6f49 index: don't commit state in BaseIndex::Rewind
1c3db0ed8e6 doc: use new block_to_connect parameter name
8333aa53029 Merge bitcoin/bitcoin#32523: wallet: Remove isminetypes
eab5518913a doc: mark bitcoin-{node,gui} installed in files.md
966666de9a6 doc: Remove wrong and redundant doxygen tag
af4156ab755 build: set ENABLE_IPC to OFF when fuzzing
2a815d126bc doc: link to capnp version bump PR
decc3671c88 guix: remove libxcb-xinerama.so.0 from allowed libs
3d9314f3838 depends: remove xinerama extension from libxcb
7d9789401be Merge bitcoin/bitcoin#31802: Add bitcoin-{node,gui} to release binaries for IPC
2885bd0e1c4 doc: unify `datacarriersize` warning with release notes
be776a1443f wallet: Remove isminetype
009a69a616c wallet: Remove ISMINE_USED
6a7aa015747 wallet: Remove COutput::spendable and AvailableCoinsListUnspent
7392b8b084b miner: clamp options instead of asserting
620abe985e5 interfaces, gui: Remove is_mine output parameter from getAddress
c0d28c8f5b1 qt: Fix compatibility with `-debuglogfile` command-line option
daa40a3ff97 doc fixups for 33106
c568511e8ce test fixup for incremental feerate
636fa219d37 test fixups
9169a50d529 [rpc] expose blockmintxfee via getmininginfo
ce7d94a492e doc: add release note
71f29d4fa90 doc: update build and dependencies docs for IPC
3cbf747c328 cmake: set ENABLE_IPC by default
32a90e1b901 ci: use bitcoin-node for one depends job
b333cc14d50 ci: build one depends job without multiprocess
16bce9ac4cd build: depends makes libmultiprocess by default
30c6f64eed3 test: Remove unnecessary LoadWallet() calls
42e99ad7739 net: skip non-route netlink responses
57ce645f05d net: filter for default routes in netlink responses
REVERT: 1857296c067 kernel: Fix bitcoin-chainstate for windows
REVERT: b14455e3fcc kernel: Add Purpose section to header documentation
REVERT: b6bc17b703d kernel: Allowing reducing exports
REVERT: b1ef48b2073 kernel: Add pure kernel bitcoin-chainstate
REVERT: b8e4169e453 kernel: Add functions to get the block hash from a block
REVERT: ea03b539a2f kernel: Add block index utility functions to C header
REVERT: 10e8bc69571 kernel: Add function to read block undo data from disk to C header
REVERT: 49743bf8c13 kernel: Add functions to read block from disk to C header
REVERT: 11588ec6537 kernel: Add function for copying block data to C header
REVERT: de24590872f kernel: Add functions for the block validation state to C header
REVERT: dcba34ad8f8 kernel: Add validation interface to C header
REVERT: 527435ebcc7 kernel: Add interrupt function to C header
REVERT: c6a3da91764 kernel: Add import blocks function to C header
REVERT: f7d879349a6 kernel: Add chainstate load options for in-memory dbs in C header
REVERT: 9b0116f0ada kernel: Add options for reindexing in C header
REVERT: 4bbd99b0300 kernel: Add block validation to C header
REVERT: 8dbc8230f11 kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: f1a9d6f4dff kernel: Add chainstate manager option for setting worker threads
REVERT: 864008a1a71 kernel: Add chainstate manager object to C header
REVERT: b160f13ed14 kernel: Add notifications context option to C header
REVERT: d465a997f2e kernel: Add chain params context option to C header
REVERT: e61538b88b3 kernel: Add kernel library context object
REVERT: 3963f4c9de7 kernel: Add logging to kernel library C header
REVERT: f3acc94b4b7 kernel: Introduce initial kernel C header API

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: adc35e5bbe604e9a1022207217c2b23fb1fb0c3d
alexanderwiederin added a commit to alexanderwiederin/rust-bitcoinkernel that referenced this pull request Sep 17, 2025
…d06944a6666

0d06944a6666 implement blockreader and expose key methods on the c api
bbbc6afa401a Add directory locking and read-only mode for BlockTreeStore
1bcbdfd8ae66 flush disk writes when not in initial block download
f2926f8e2bfa fix: remove in memory test for kernel
b93a169b1dc4 blockstorage: Remove BlockTreeDB dead code
7cab96bc99e6 kernel: Add assumed header store to chainparams
065b02d2e1b4 kernel: Remove block tree db params
7a6d0c725ca8 blockstorage: Replace BlockTreeDB with BlockTreeStore
b63afb30249c fuzz: Use BlockTreeStore in block index fuzz test
131f742bcb96 kernel: Add blocktreestorage module
e450549ae947 kernel: Fix bitcoin-chainstate for windows
c7cd7331be5c kernel: Add Purpose section to header documentation
de793c8255c7 kernel: Allowing reducing exports
a71138dfa549 kernel: Add pure kernel bitcoin-chainstate
a81e68c5be3a kernel: Add functions to get the block hash from a block
84ab95e70f41 kernel: Add block index utility functions to C header
461e4e75700d kernel: Add function to read block undo data from disk to C header
16aa4f40a8fe kernel: Add functions to read block from disk to C header
c78602e0042d kernel: Add function for copying block data to C header
b51c9ac63196 kernel: Add functions for the block validation state to C header
8b9ca40af60c kernel: Add validation interface to C header
a7e2388a2326 kernel: Add interrupt function to C header
99ef8fd48469 kernel: Add import blocks function to C header
e0f41a82d1ef kernel: Add chainstate load options for in-memory dbs in C header
999954955651 kernel: Add options for reindexing in C header
f2f8ec99b7c4 kernel: Add block validation to C header
2779ed23f6e5 kernel: Add chainstate loading when instantiating a ChainstateManager
69311cfdef9f kernel: Add chainstate manager option for setting worker threads
b02f62573d57 kernel: Add chainstate manager object to C header
dc4c23c0adaa kernel: Add notifications context option to C header
190395959d07 kernel: Add chain params context option to C header
137a10c29397 kernel: Add kernel library context object
d61fc3312412 kernel: Add logging to kernel library C header
7d4163c0afa1 kernel: Introduce initial kernel C header API
d20f10affba8 Merge bitcoin/bitcoin#33268: wallet: Identify transactions spending 0-value outputs, and add tests for anchor outputs in a wallet
9a5ba154bea1 Merge bitcoin/bitcoin#33310: trace: Workaround GCC bug compiling with old systemtap
853f0d881142 Merge bitcoin/bitcoin#33364: ci: always use tag for LLVM checkout
b81445333a10 Merge bitcoin/bitcoin#33243: test: Fix CLI_MAX_ARG_SIZE issues
f757da87f59d Merge bitcoin/bitcoin#33332: common: Make arith_uint256 trivially copyable
e416dc2fbbb7 Merge bitcoin/bitcoin#33321: kernel: make blockTip index const
176fac0f16d5 Merge bitcoin/bitcoin#33141: test: Remove polling loop from test_runner (take 2)
593d5fe37d7a Merge bitcoin/bitcoin#33354: txgraph: use enum Level instead of bool main_only
653a9849d5f9 common: Make arith_uint256 trivially copyable
b736052e39f1 ci: always use tag for LLVM checkout
d45f3717d2c6 txgraph: use enum Level instead of bool main_only
ee42d59d4de9 Merge bitcoin-core/gui#886: Avoid pathological QT text/markdown behavior...
2c8a478db4b8 Merge bitcoin/bitcoin#33231: net: Prevent node from binding to the same `CService`
591eea7b5ac5 Merge bitcoin/bitcoin#33082: wallet, refactor: Remove Legacy check and error
6a371b70c87a gui: Avoid pathological QT text/markdown behavior...
c0894a0a2be0 Merge bitcoin/bitcoin#33348: contrib: add bitcoin binary to gen-manpages
53e6db91ef59 contrib: add placeholder manpage for bitcoin binary
f5887a8de4c8 contrib: add bitcoin binary to gen-manpages
314c42b55bda Merge bitcoin/bitcoin#33347: build: bump `CLIENT_VERSION_MAJOR` to 30
9f744fffc39d build: bump CLIENT_VERSION_MAJOR to 30
042817ddb84c Merge bitcoin/bitcoin#33346: doc: remove release note fragment
0f0e6fe7f5f4 doc: remove release note fragment
84cf5420398c Merge bitcoin/bitcoin#33275: Release: 30.0 translations update
13809b867ad9 Merge bitcoin/bitcoin#33303: ci: Checkout latest merged pulls
e749205f83dd Merge bitcoin/bitcoin#33319: ci: reduce runner sizes on various jobs
9cbd346daa50 Merge bitcoin/bitcoin#33340: Fix benchmark CSV output
4776179be9fb Merge bitcoin/bitcoin#33342: guix: strip binaries in libexec
0ba44d9c38af Merge bitcoin/bitcoin#33296: net: check for empty header before calling FillBlock
1861030bea7f Merge bitcoin/bitcoin#30469: index: Fix coinstats overflow
8b6264768030 test: send duplicate blocktxn message in p2p_compactblocks.py
5e585a0fc4fd net: check for empty header before calling FillBlock
cb825a07ac6d Merge bitcoin/bitcoin#33338: net: Add interrupt to pcp retry loop
0b0bd74c3e9a Merge bitcoin/bitcoin#33312: clang-tidy: Disable `UndefinedBinaryOperatorResult` check in `src/ipc`
790b440197bd Fix benchmark CSV output
3cceda9f4855 guix: strip binaries in libexec
3eea9fd39532 Merge bitcoin/bitcoin#33308: doc: fix `LIBRARY_PATH` comment
0b38cc9bf7a3 Merge bitcoin/bitcoin#33339: doc: move release notes to wiki pre branch off
b320f5efa175 qt: 30.0 translations update
905c1a77f51c doc: move release notes to wiki pre branch off
2d799590feea Merge bitcoin/bitcoin#33283: contrib: update fixed seeds
188de70c8641 net: Add interrupt to pcp retry loop
9c6fa07b1248 Merge bitcoin/bitcoin#33322: Update libmultiprocess subtree to improve build and logs
c76797481155 clang-tidy: Fix critical warnings
54dc34ec2279 index: Remove unused coinstatsindex recovery code
37c4fba1f4c1 index: Check BIP30 blocks when rewinding Coinstatsindex
51df9de8e5b9 doc: Add release note for 30469
bb8d67318329 test: Add coinstatsindex compatibility test
b2e8b64ddc35 index, refactor: Append blocks to coinstatsindex without db read
431a076ae6e3 index: Fix coinstatsindex overflow issue
fa8f081af31c ci: Checkout latest merged pulls
36e40417de3f Merge bitcoin-core/gui#884: Fix compatibility with `-debuglogfile` command-line option
a4ee70e5b69c Merge commit 'a334bbe9b79ddf1999003c792bc8945639b7e9c1' into pr/subtree-4
a334bbe9b79d Squashed 'src/ipc/libmultiprocess/' changes from 1b8d4a6f1e54..13424cf2ecc1
e04cb9c1bdf2 Merge bitcoin/bitcoin#33201: Add functional test for IPC interface
75d9b7247570 kernel: make blockTip index const
a341e11ac92b ci: test IPC on additional hosts
6aee573bfcf6 ci: enable IPC tests in CI
8d2ee88fa2a5 tests: add functional tests for IPC interface
3cc9a06c8dd5 test: Add TestNode ipcbind option
3cceb60a7153 test: Provide path to `bitcoin` binary
8c7f0056291d test: add is_ipc_compiled() and skip_if_no_ipc() functions
37c21ebe4078 Merge bitcoin/bitcoin#33309: doc: archive v29.1 release notes
32e2484b67e6 Merge bitcoin/bitcoin#33304: depends: strip when installing qt binaries
4d4789dffad5 net: Prevent node from binding to the same CService
647cdb4f7e80 Merge bitcoin/bitcoin#33311: net: Quiet down logging when router doesn't support natpmp/pcp
589b65f06c33 clang-tidy: Disable `UndefinedBinaryOperatorResult` check in `src/ipc`
4f1a4cbccd78 net: Quiet down logging when router doesn't support natpmp/pcp
93a29ff28301 trace: Workaround GCC bug compiling with old systemtap
5eeb2facbbbb ci: reduce runner sizes on various jobs
61ec8866c639 [doc] archive v29.1 release notes
a2a35b58cb95 doc: fix LIBRARY_PATH comment
e1ce0c525c7f Merge bitcoin/bitcoin#33291: ci: cd into BASE_BUILD_DIR for GetCMakeLogFiles
84e813a02bb7 index, refactor: DRY coinbase check
fab842b32487 index, refactor: Rename ReverseBlock to RevertBlock
2d8f5b91881e Merge bitcoin/bitcoin#33136: ci: Remove redundant RUN_UNIT_TESTS_SEQUENTIAL
c9d5f211c119 depends: strip when installing qt
fae610d8581a ci: Remove redundant RUN_UNIT_TESTS_SEQUENTIAL
2562fe1b2b63 Merge bitcoin/bitcoin#32159: net, pcp: handle multi-part responses and filter for default route while querying default gateway
ed2ff3c63d83 Merge bitcoin/bitcoin#33235: build: set ENABLE_IPC to OFF when fuzzing
88db09bafe9e net: handle multi-part netlink responses
113a4228229b wallet: Add m_cached_from_me to cache "from me" status
609d265ebc51 test: Add a test for anchor outputs in the wallet
c40dc822d74a wallet: Throw an error in sendall if the tx size cannot be calculated
39a7dbdd277d wallet: Determine IsFromMe by checking for TXOs of inputs
e76c2f7a4111 test: Test wallet 'from me' status change
689a32197638 Merge bitcoin/bitcoin#33220: doc: truc packages allow sub min feerate transactions
9b76eef2d2b4 ci: cd into BASE_BUILD_DIR for GetCMakeLogFiles
939678940f6c contrib: update fixed seeds
6cdd8ee67618 contrib: update makeseeds minblocks
b8da9f4034e1 contrib: update makeseeds UA regex
ba0b4304ecee Merge bitcoin/bitcoin#32989: ci: Migrate CI to hosted Cirrus Runners
0eb3eae54865 Merge bitcoin/bitcoin#33274: kernel: chainparams & headersync updates for 30.0
fa4885ef2fde test: Remove polling loop from test_runner
7270839af425 doc: truc packages allow sub min feerate transactions
46369583f3a9 Merge bitcoin/bitcoin#33224: doc: unify `datacarriersize` warning with release notes
755152ac819a kernel: add testnet4 assumeutxo param at height 90'000
a6512686e335 kernel: add mainnet assumeutxo param at height 910'000
943de66b5043 kernel: update headersync params
66fb96242648 kernel: update chainTxData
c3cb26e02834 kernel: update assumevalid and minimumChainWork
b4adae76d466 kernel: update assumed blockchain & chainstate sizes
7e58c94112d0 Merge bitcoin/bitcoin#33269: test: Fixup fill_mempool docstring
3c5da69a232b ci: remove un-needed lint_run*.sh files
2aa288efdda2 ci: fix annoying docker warning
dd1c5903e8d8 ci: add ccache hit-rate warning when < 75%
f4272844833d doc: Detail configuration of hosted CI runners
3f339e99e00b ci: dynamically match makejobs with cores
4393ffdd837b ci: remove .cirrus.yml
bc41848d00f7 ci: port lint
d290a8e6eab7 ci: port msan-depends
9bbae61e3b40 ci: port tsan-depends
bf7d5364527c ci: port tidy
549074bc643f ci: port centos-depends-gui
58e38c3a0425 ci: port previous-releases-depends-debug
341196d75c30 ci: port fuzzer-address-undefined-integer-nodepends
f2068f26c123 ci: port no-IPC-i686-DEBUG
2a00b12d73bb ci: port nowallet-libbitcoinkernel
9c2514de5343 ci: port mac-cross-gui-notests
2c990d84a3db ci: force reinstall of kernel headers in asan
884251441bb7 ci: update asan-lsan-ubsan
f253031cb8e4 ci: port arm 32-bit job
04e7bfbceb03 ci: update windows-cross job
cc1735d77714 ci: add job to determine runner type
020069e6b718 ci: add Cirrus cache host
9c2b96e0d030 ci: have base install run in right dir
18f6be09d02b ci: use docker build cache arg directly
94a09325475d ci: use buildx in ci
fdf64e553245 ci: add configure-docker action
33ba073df7a8 ci: add REPO_USE_CIRRUS_RUNNERS
b232b0fa5e96 ci: add caching actions
b8fcc9fcbcdd ci: add configure environment action
fa3f682032a3 test: Fixup fill_mempool docstring
7cc9a087069b Merge bitcoin/bitcoin#33253: Revert compact block cache inefficiencies
084fd68fda2c Merge bitcoin/bitcoin#33258: ci: use LLVM 21
6ff2d423625d Merge bitcoin/bitcoin#33189: rpc: followups for 33106
4d54bb2b92cc Merge bitcoin/bitcoin#33264: threading: reduce the scope of lock in getblocktemplate
9ae23950ef80 Merge bitcoin/bitcoin#33261: ci: return to using dash in CentOS job
493ba0f68831 threading: reduce the scope of lock in getblocktemplate
509ffea40abb ci: return to using dash in CentOS job
b7b249d3adfb Revert "[refactor] rewrite vTxHashes as a vector of CTransactionRef"
b9300d8d0a74 Revert "refactor: Simplify `extra_txn` to be a vec of CTransactionRef instead of a vec of pair<Wtxid, CTransactionRef>"
df5a50e5de20 bench/blockencodings: add compact block reconstruction benchmark
4cf0ae474ba0 ci: use LLVM 21
fa96a4afea2a ci: Enable CI_LIMIT_STACK_SIZE=1 in i686_no_ipc task
facfde2cdce6 test: Fix CLI_MAX_ARG_SIZE issues
6ca6f3b37b99 Merge bitcoin/bitcoin#33241: Update libmultiprocess subtree to fix build issues
9703b7e6d563 Merge bitcoin/bitcoin#32592: threading: remove ancient CRITICAL_SECTION macros
dd68d0f40b61 Squashed 'src/ipc/libmultiprocess/' changes from b4120d34bad2..1b8d4a6f1e54
323b3fd27283 Merge commit 'dd68d0f40b614474f24469fbe1ba02f8f9146b31' into pr/subtree-3
d3c5e47391e2 wallet, refactor: Remove Legacy check and error
73220fc0f958 Merge bitcoin/bitcoin#33212: index: Don't commit state in BaseIndex::Rewind
46ca7712cb5f threading: remove unused template instantiations
b537a6a6dbd3 threading: remove obsolete critsect macros
0d0e0a39b4a5 threading: use a reverse lock rather than manual critsect macros
3ddd554d3181 tests: Add Assertions in reverse_lock tests to exercise thread-safety annotations
c88b1cbf57a3 tests: get rid of remaining manual critsect usage
2c223de2af72 Merge bitcoin/bitcoin#33237: doc: use new block_to_connect parameter name
02f6758e0ce8 Merge bitcoin/bitcoin#33233: doc: follow-ups to "Add bitcoin-{node,gui} to release binaries for IPC"
682bd04462d2 Merge bitcoin/bitcoin#33236: doc: Remove wrong and redundant doxygen tag
a9701de0c9fd Merge bitcoin/bitcoin#33217: depends: remove xinerama extension from libxcb
78351ed083b1 Merge bitcoin/bitcoin#33222: miner: clamp options instead of asserting
de65c86572c5 doc: capnproto instruction for Alpine and Arch
49d1a1a36306 doc: add capnproto-devel to Fedora build instruction
a602f6fb7bf5 test: index with an unclean restart after a reorg
01b95ac6f496 index: don't commit state in BaseIndex::Rewind
1c3db0ed8e6f doc: use new block_to_connect parameter name
8333aa530290 Merge bitcoin/bitcoin#32523: wallet: Remove isminetypes
eab5518913a6 doc: mark bitcoin-{node,gui} installed in files.md
966666de9a62 doc: Remove wrong and redundant doxygen tag
af4156ab7556 build: set ENABLE_IPC to OFF when fuzzing
2a815d126bc9 doc: link to capnp version bump PR
decc3671c88b guix: remove libxcb-xinerama.so.0 from allowed libs
3d9314f3838c depends: remove xinerama extension from libxcb
7d9789401be4 Merge bitcoin/bitcoin#31802: Add bitcoin-{node,gui} to release binaries for IPC
2885bd0e1c4f doc: unify `datacarriersize` warning with release notes
be776a1443fd wallet: Remove isminetype
009a69a616cf wallet: Remove ISMINE_USED
6a7aa015747e wallet: Remove COutput::spendable and AvailableCoinsListUnspent
7392b8b084be miner: clamp options instead of asserting
620abe985e51 interfaces, gui: Remove is_mine output parameter from getAddress
c0d28c8f5b15 qt: Fix compatibility with `-debuglogfile` command-line option
daa40a3ff973 doc fixups for 33106
c568511e8ced test fixup for incremental feerate
636fa219d37f test fixups
9169a50d529e [rpc] expose blockmintxfee via getmininginfo
ce7d94a492e6 doc: add release note
71f29d4fa90a doc: update build and dependencies docs for IPC
3cbf747c328f cmake: set ENABLE_IPC by default
32a90e1b9017 ci: use bitcoin-node for one depends job
b333cc14d50b ci: build one depends job without multiprocess
16bce9ac4cd0 build: depends makes libmultiprocess by default
30c6f64eed30 test: Remove unnecessary LoadWallet() calls
42e99ad77396 net: skip non-route netlink responses
57ce645f05d1 net: filter for default routes in netlink responses
REVERT: 1857296c067b kernel: Fix bitcoin-chainstate for windows
REVERT: b14455e3fcc5 kernel: Add Purpose section to header documentation
REVERT: b6bc17b703dd kernel: Allowing reducing exports
REVERT: b1ef48b20730 kernel: Add pure kernel bitcoin-chainstate
REVERT: b8e4169e453a kernel: Add functions to get the block hash from a block
REVERT: ea03b539a2fa kernel: Add block index utility functions to C header
REVERT: 10e8bc695713 kernel: Add function to read block undo data from disk to C header
REVERT: 49743bf8c133 kernel: Add functions to read block from disk to C header
REVERT: 11588ec6537c kernel: Add function for copying block data to C header
REVERT: de24590872f8 kernel: Add functions for the block validation state to C header
REVERT: dcba34ad8f86 kernel: Add validation interface to C header
REVERT: 527435ebcc73 kernel: Add interrupt function to C header
REVERT: c6a3da91764a kernel: Add import blocks function to C header
REVERT: f7d879349a61 kernel: Add chainstate load options for in-memory dbs in C header
REVERT: 9b0116f0adad kernel: Add options for reindexing in C header
REVERT: 4bbd99b03001 kernel: Add block validation to C header
REVERT: 8dbc8230f110 kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: f1a9d6f4dfff kernel: Add chainstate manager option for setting worker threads
REVERT: 864008a1a71a kernel: Add chainstate manager object to C header
REVERT: b160f13ed141 kernel: Add notifications context option to C header
REVERT: d465a997f2e9 kernel: Add chain params context option to C header
REVERT: e61538b88b32 kernel: Add kernel library context object
REVERT: 3963f4c9de73 kernel: Add logging to kernel library C header
REVERT: f3acc94b4b7e kernel: Introduce initial kernel C header API

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 0d06944a66664815b8b279be69a72723e01a5903
alexanderwiederin added a commit to alexanderwiederin/rust-bitcoinkernel that referenced this pull request Sep 17, 2025
…fc068b735d2

0fc068b735d2 kernel: Fix bitcoin-chainstate for windows
f6715d22de18 kernel: Add Purpose section to header documentation
737304906303 kernel: Allowing reducing exports
9ce6ef9e2ae3 kernel: Add pure kernel bitcoin-chainstate
27df296c3c55 kernel: Add functions to get the block hash from a block
f013c2963042 kernel: Add block index utility functions to C header
91d571ab3aaa kernel: Add function to read block undo data from disk to C header
c4b6912a4bf8 kernel: Add functions to read block from disk to C header
ef25a7cfff19 kernel: Add function for copying block data to C header
79499fc875be kernel: Add functions for the block validation state to C header
aace9f3da57e kernel: Add validation interface to C header
2a6652522d12 kernel: Add interrupt function to C header
c29e530dd301 kernel: Add import blocks function to C header
b06a333711ee kernel: Add chainstate load options for in-memory dbs in C header
3fc6a85f30d7 kernel: Add options for reindexing in C header
6e86239dee91 kernel: Add block validation to C header
d05b07565679 kernel: Add chainstate loading when instantiating a ChainstateManager
2508d94192f2 kernel: Add chainstate manager option for setting worker threads
514bbe5ad804 kernel: Add chainstate manager object to C header
341b00345cee kernel: Add notifications context option to C header
3cde1d242b85 kernel: Add chain params context option to C header
51f3d54d0d44 kernel: Add kernel library context object
c3424d8750e8 kernel: Add logging to kernel library C header
7d4163c0afa1 kernel: Introduce initial kernel C header API
d20f10affba8 Merge bitcoin/bitcoin#33268: wallet: Identify transactions spending 0-value outputs, and add tests for anchor outputs in a wallet
9a5ba154bea1 Merge bitcoin/bitcoin#33310: trace: Workaround GCC bug compiling with old systemtap
853f0d881142 Merge bitcoin/bitcoin#33364: ci: always use tag for LLVM checkout
b81445333a10 Merge bitcoin/bitcoin#33243: test: Fix CLI_MAX_ARG_SIZE issues
f757da87f59d Merge bitcoin/bitcoin#33332: common: Make arith_uint256 trivially copyable
e416dc2fbbb7 Merge bitcoin/bitcoin#33321: kernel: make blockTip index const
176fac0f16d5 Merge bitcoin/bitcoin#33141: test: Remove polling loop from test_runner (take 2)
593d5fe37d7a Merge bitcoin/bitcoin#33354: txgraph: use enum Level instead of bool main_only
653a9849d5f9 common: Make arith_uint256 trivially copyable
b736052e39f1 ci: always use tag for LLVM checkout
d45f3717d2c6 txgraph: use enum Level instead of bool main_only
ee42d59d4de9 Merge bitcoin-core/gui#886: Avoid pathological QT text/markdown behavior...
2c8a478db4b8 Merge bitcoin/bitcoin#33231: net: Prevent node from binding to the same `CService`
591eea7b5ac5 Merge bitcoin/bitcoin#33082: wallet, refactor: Remove Legacy check and error
6a371b70c87a gui: Avoid pathological QT text/markdown behavior...
c0894a0a2be0 Merge bitcoin/bitcoin#33348: contrib: add bitcoin binary to gen-manpages
53e6db91ef59 contrib: add placeholder manpage for bitcoin binary
f5887a8de4c8 contrib: add bitcoin binary to gen-manpages
314c42b55bda Merge bitcoin/bitcoin#33347: build: bump `CLIENT_VERSION_MAJOR` to 30
9f744fffc39d build: bump CLIENT_VERSION_MAJOR to 30
042817ddb84c Merge bitcoin/bitcoin#33346: doc: remove release note fragment
0f0e6fe7f5f4 doc: remove release note fragment
84cf5420398c Merge bitcoin/bitcoin#33275: Release: 30.0 translations update
13809b867ad9 Merge bitcoin/bitcoin#33303: ci: Checkout latest merged pulls
e749205f83dd Merge bitcoin/bitcoin#33319: ci: reduce runner sizes on various jobs
9cbd346daa50 Merge bitcoin/bitcoin#33340: Fix benchmark CSV output
4776179be9fb Merge bitcoin/bitcoin#33342: guix: strip binaries in libexec
0ba44d9c38af Merge bitcoin/bitcoin#33296: net: check for empty header before calling FillBlock
1861030bea7f Merge bitcoin/bitcoin#30469: index: Fix coinstats overflow
8b6264768030 test: send duplicate blocktxn message in p2p_compactblocks.py
5e585a0fc4fd net: check for empty header before calling FillBlock
cb825a07ac6d Merge bitcoin/bitcoin#33338: net: Add interrupt to pcp retry loop
0b0bd74c3e9a Merge bitcoin/bitcoin#33312: clang-tidy: Disable `UndefinedBinaryOperatorResult` check in `src/ipc`
790b440197bd Fix benchmark CSV output
3cceda9f4855 guix: strip binaries in libexec
3eea9fd39532 Merge bitcoin/bitcoin#33308: doc: fix `LIBRARY_PATH` comment
0b38cc9bf7a3 Merge bitcoin/bitcoin#33339: doc: move release notes to wiki pre branch off
b320f5efa175 qt: 30.0 translations update
905c1a77f51c doc: move release notes to wiki pre branch off
2d799590feea Merge bitcoin/bitcoin#33283: contrib: update fixed seeds
188de70c8641 net: Add interrupt to pcp retry loop
9c6fa07b1248 Merge bitcoin/bitcoin#33322: Update libmultiprocess subtree to improve build and logs
c76797481155 clang-tidy: Fix critical warnings
54dc34ec2279 index: Remove unused coinstatsindex recovery code
37c4fba1f4c1 index: Check BIP30 blocks when rewinding Coinstatsindex
51df9de8e5b9 doc: Add release note for 30469
bb8d67318329 test: Add coinstatsindex compatibility test
b2e8b64ddc35 index, refactor: Append blocks to coinstatsindex without db read
431a076ae6e3 index: Fix coinstatsindex overflow issue
fa8f081af31c ci: Checkout latest merged pulls
36e40417de3f Merge bitcoin-core/gui#884: Fix compatibility with `-debuglogfile` command-line option
a4ee70e5b69c Merge commit 'a334bbe9b79ddf1999003c792bc8945639b7e9c1' into pr/subtree-4
a334bbe9b79d Squashed 'src/ipc/libmultiprocess/' changes from 1b8d4a6f1e54..13424cf2ecc1
e04cb9c1bdf2 Merge bitcoin/bitcoin#33201: Add functional test for IPC interface
75d9b7247570 kernel: make blockTip index const
a341e11ac92b ci: test IPC on additional hosts
6aee573bfcf6 ci: enable IPC tests in CI
8d2ee88fa2a5 tests: add functional tests for IPC interface
3cc9a06c8dd5 test: Add TestNode ipcbind option
3cceb60a7153 test: Provide path to `bitcoin` binary
8c7f0056291d test: add is_ipc_compiled() and skip_if_no_ipc() functions
37c21ebe4078 Merge bitcoin/bitcoin#33309: doc: archive v29.1 release notes
32e2484b67e6 Merge bitcoin/bitcoin#33304: depends: strip when installing qt binaries
4d4789dffad5 net: Prevent node from binding to the same CService
647cdb4f7e80 Merge bitcoin/bitcoin#33311: net: Quiet down logging when router doesn't support natpmp/pcp
589b65f06c33 clang-tidy: Disable `UndefinedBinaryOperatorResult` check in `src/ipc`
4f1a4cbccd78 net: Quiet down logging when router doesn't support natpmp/pcp
93a29ff28301 trace: Workaround GCC bug compiling with old systemtap
5eeb2facbbbb ci: reduce runner sizes on various jobs
61ec8866c639 [doc] archive v29.1 release notes
a2a35b58cb95 doc: fix LIBRARY_PATH comment
e1ce0c525c7f Merge bitcoin/bitcoin#33291: ci: cd into BASE_BUILD_DIR for GetCMakeLogFiles
84e813a02bb7 index, refactor: DRY coinbase check
fab842b32487 index, refactor: Rename ReverseBlock to RevertBlock
2d8f5b91881e Merge bitcoin/bitcoin#33136: ci: Remove redundant RUN_UNIT_TESTS_SEQUENTIAL
c9d5f211c119 depends: strip when installing qt
fae610d8581a ci: Remove redundant RUN_UNIT_TESTS_SEQUENTIAL
2562fe1b2b63 Merge bitcoin/bitcoin#32159: net, pcp: handle multi-part responses and filter for default route while querying default gateway
ed2ff3c63d83 Merge bitcoin/bitcoin#33235: build: set ENABLE_IPC to OFF when fuzzing
88db09bafe9e net: handle multi-part netlink responses
113a4228229b wallet: Add m_cached_from_me to cache "from me" status
609d265ebc51 test: Add a test for anchor outputs in the wallet
c40dc822d74a wallet: Throw an error in sendall if the tx size cannot be calculated
39a7dbdd277d wallet: Determine IsFromMe by checking for TXOs of inputs
e76c2f7a4111 test: Test wallet 'from me' status change
689a32197638 Merge bitcoin/bitcoin#33220: doc: truc packages allow sub min feerate transactions
9b76eef2d2b4 ci: cd into BASE_BUILD_DIR for GetCMakeLogFiles
939678940f6c contrib: update fixed seeds
6cdd8ee67618 contrib: update makeseeds minblocks
b8da9f4034e1 contrib: update makeseeds UA regex
ba0b4304ecee Merge bitcoin/bitcoin#32989: ci: Migrate CI to hosted Cirrus Runners
0eb3eae54865 Merge bitcoin/bitcoin#33274: kernel: chainparams & headersync updates for 30.0
fa4885ef2fde test: Remove polling loop from test_runner
7270839af425 doc: truc packages allow sub min feerate transactions
46369583f3a9 Merge bitcoin/bitcoin#33224: doc: unify `datacarriersize` warning with release notes
755152ac819a kernel: add testnet4 assumeutxo param at height 90'000
a6512686e335 kernel: add mainnet assumeutxo param at height 910'000
943de66b5043 kernel: update headersync params
66fb96242648 kernel: update chainTxData
c3cb26e02834 kernel: update assumevalid and minimumChainWork
b4adae76d466 kernel: update assumed blockchain & chainstate sizes
7e58c94112d0 Merge bitcoin/bitcoin#33269: test: Fixup fill_mempool docstring
3c5da69a232b ci: remove un-needed lint_run*.sh files
2aa288efdda2 ci: fix annoying docker warning
dd1c5903e8d8 ci: add ccache hit-rate warning when < 75%
f4272844833d doc: Detail configuration of hosted CI runners
3f339e99e00b ci: dynamically match makejobs with cores
4393ffdd837b ci: remove .cirrus.yml
bc41848d00f7 ci: port lint
d290a8e6eab7 ci: port msan-depends
9bbae61e3b40 ci: port tsan-depends
bf7d5364527c ci: port tidy
549074bc643f ci: port centos-depends-gui
58e38c3a0425 ci: port previous-releases-depends-debug
341196d75c30 ci: port fuzzer-address-undefined-integer-nodepends
f2068f26c123 ci: port no-IPC-i686-DEBUG
2a00b12d73bb ci: port nowallet-libbitcoinkernel
9c2514de5343 ci: port mac-cross-gui-notests
2c990d84a3db ci: force reinstall of kernel headers in asan
884251441bb7 ci: update asan-lsan-ubsan
f253031cb8e4 ci: port arm 32-bit job
04e7bfbceb03 ci: update windows-cross job
cc1735d77714 ci: add job to determine runner type
020069e6b718 ci: add Cirrus cache host
9c2b96e0d030 ci: have base install run in right dir
18f6be09d02b ci: use docker build cache arg directly
94a09325475d ci: use buildx in ci
fdf64e553245 ci: add configure-docker action
33ba073df7a8 ci: add REPO_USE_CIRRUS_RUNNERS
b232b0fa5e96 ci: add caching actions
b8fcc9fcbcdd ci: add configure environment action
fa3f682032a3 test: Fixup fill_mempool docstring
7cc9a087069b Merge bitcoin/bitcoin#33253: Revert compact block cache inefficiencies
084fd68fda2c Merge bitcoin/bitcoin#33258: ci: use LLVM 21
6ff2d423625d Merge bitcoin/bitcoin#33189: rpc: followups for 33106
4d54bb2b92cc Merge bitcoin/bitcoin#33264: threading: reduce the scope of lock in getblocktemplate
9ae23950ef80 Merge bitcoin/bitcoin#33261: ci: return to using dash in CentOS job
493ba0f68831 threading: reduce the scope of lock in getblocktemplate
509ffea40abb ci: return to using dash in CentOS job
b7b249d3adfb Revert "[refactor] rewrite vTxHashes as a vector of CTransactionRef"
b9300d8d0a74 Revert "refactor: Simplify `extra_txn` to be a vec of CTransactionRef instead of a vec of pair<Wtxid, CTransactionRef>"
df5a50e5de20 bench/blockencodings: add compact block reconstruction benchmark
4cf0ae474ba0 ci: use LLVM 21
fa96a4afea2a ci: Enable CI_LIMIT_STACK_SIZE=1 in i686_no_ipc task
facfde2cdce6 test: Fix CLI_MAX_ARG_SIZE issues
6ca6f3b37b99 Merge bitcoin/bitcoin#33241: Update libmultiprocess subtree to fix build issues
9703b7e6d563 Merge bitcoin/bitcoin#32592: threading: remove ancient CRITICAL_SECTION macros
dd68d0f40b61 Squashed 'src/ipc/libmultiprocess/' changes from b4120d34bad2..1b8d4a6f1e54
323b3fd27283 Merge commit 'dd68d0f40b614474f24469fbe1ba02f8f9146b31' into pr/subtree-3
d3c5e47391e2 wallet, refactor: Remove Legacy check and error
73220fc0f958 Merge bitcoin/bitcoin#33212: index: Don't commit state in BaseIndex::Rewind
46ca7712cb5f threading: remove unused template instantiations
b537a6a6dbd3 threading: remove obsolete critsect macros
0d0e0a39b4a5 threading: use a reverse lock rather than manual critsect macros
3ddd554d3181 tests: Add Assertions in reverse_lock tests to exercise thread-safety annotations
c88b1cbf57a3 tests: get rid of remaining manual critsect usage
2c223de2af72 Merge bitcoin/bitcoin#33237: doc: use new block_to_connect parameter name
02f6758e0ce8 Merge bitcoin/bitcoin#33233: doc: follow-ups to "Add bitcoin-{node,gui} to release binaries for IPC"
682bd04462d2 Merge bitcoin/bitcoin#33236: doc: Remove wrong and redundant doxygen tag
a9701de0c9fd Merge bitcoin/bitcoin#33217: depends: remove xinerama extension from libxcb
78351ed083b1 Merge bitcoin/bitcoin#33222: miner: clamp options instead of asserting
de65c86572c5 doc: capnproto instruction for Alpine and Arch
49d1a1a36306 doc: add capnproto-devel to Fedora build instruction
a602f6fb7bf5 test: index with an unclean restart after a reorg
01b95ac6f496 index: don't commit state in BaseIndex::Rewind
1c3db0ed8e6f doc: use new block_to_connect parameter name
8333aa530290 Merge bitcoin/bitcoin#32523: wallet: Remove isminetypes
eab5518913a6 doc: mark bitcoin-{node,gui} installed in files.md
966666de9a62 doc: Remove wrong and redundant doxygen tag
af4156ab7556 build: set ENABLE_IPC to OFF when fuzzing
2a815d126bc9 doc: link to capnp version bump PR
decc3671c88b guix: remove libxcb-xinerama.so.0 from allowed libs
3d9314f3838c depends: remove xinerama extension from libxcb
7d9789401be4 Merge bitcoin/bitcoin#31802: Add bitcoin-{node,gui} to release binaries for IPC
2885bd0e1c4f doc: unify `datacarriersize` warning with release notes
be776a1443fd wallet: Remove isminetype
009a69a616cf wallet: Remove ISMINE_USED
6a7aa015747e wallet: Remove COutput::spendable and AvailableCoinsListUnspent
7392b8b084be miner: clamp options instead of asserting
620abe985e51 interfaces, gui: Remove is_mine output parameter from getAddress
c0d28c8f5b15 qt: Fix compatibility with `-debuglogfile` command-line option
daa40a3ff973 doc fixups for 33106
c568511e8ced test fixup for incremental feerate
636fa219d37f test fixups
9169a50d529e [rpc] expose blockmintxfee via getmininginfo
ce7d94a492e6 doc: add release note
71f29d4fa90a doc: update build and dependencies docs for IPC
3cbf747c328f cmake: set ENABLE_IPC by default
32a90e1b9017 ci: use bitcoin-node for one depends job
b333cc14d50b ci: build one depends job without multiprocess
16bce9ac4cd0 build: depends makes libmultiprocess by default
30c6f64eed30 test: Remove unnecessary LoadWallet() calls
42e99ad77396 net: skip non-route netlink responses
57ce645f05d1 net: filter for default routes in netlink responses
REVERT: 1857296c067b kernel: Fix bitcoin-chainstate for windows
REVERT: b14455e3fcc5 kernel: Add Purpose section to header documentation
REVERT: b6bc17b703dd kernel: Allowing reducing exports
REVERT: b1ef48b20730 kernel: Add pure kernel bitcoin-chainstate
REVERT: b8e4169e453a kernel: Add functions to get the block hash from a block
REVERT: ea03b539a2fa kernel: Add block index utility functions to C header
REVERT: 10e8bc695713 kernel: Add function to read block undo data from disk to C header
REVERT: 49743bf8c133 kernel: Add functions to read block from disk to C header
REVERT: 11588ec6537c kernel: Add function for copying block data to C header
REVERT: de24590872f8 kernel: Add functions for the block validation state to C header
REVERT: dcba34ad8f86 kernel: Add validation interface to C header
REVERT: 527435ebcc73 kernel: Add interrupt function to C header
REVERT: c6a3da91764a kernel: Add import blocks function to C header
REVERT: f7d879349a61 kernel: Add chainstate load options for in-memory dbs in C header
REVERT: 9b0116f0adad kernel: Add options for reindexing in C header
REVERT: 4bbd99b03001 kernel: Add block validation to C header
REVERT: 8dbc8230f110 kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: f1a9d6f4dfff kernel: Add chainstate manager option for setting worker threads
REVERT: 864008a1a71a kernel: Add chainstate manager object to C header
REVERT: b160f13ed141 kernel: Add notifications context option to C header
REVERT: d465a997f2e9 kernel: Add chain params context option to C header
REVERT: e61538b88b32 kernel: Add kernel library context object
REVERT: 3963f4c9de73 kernel: Add logging to kernel library C header
REVERT: f3acc94b4b7e kernel: Introduce initial kernel C header API

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 0fc068b735d267c7ef4a3b23e32dab1771df2509
stringintech added a commit to stringintech/go-bitcoinkernel that referenced this pull request Sep 17, 2025
0fc068b735d kernel: Fix bitcoin-chainstate for windows
f6715d22de1 kernel: Add Purpose section to header documentation
73730490630 kernel: Allowing reducing exports
9ce6ef9e2ae kernel: Add pure kernel bitcoin-chainstate
27df296c3c5 kernel: Add functions to get the block hash from a block
f013c296304 kernel: Add block index utility functions to C header
91d571ab3aa kernel: Add function to read block undo data from disk to C header
c4b6912a4bf kernel: Add functions to read block from disk to C header
ef25a7cfff1 kernel: Add function for copying block data to C header
79499fc875b kernel: Add functions for the block validation state to C header
aace9f3da57 kernel: Add validation interface to C header
2a6652522d1 kernel: Add interrupt function to C header
c29e530dd30 kernel: Add import blocks function to C header
b06a333711e kernel: Add chainstate load options for in-memory dbs in C header
3fc6a85f30d kernel: Add options for reindexing in C header
6e86239dee9 kernel: Add block validation to C header
d05b0756567 kernel: Add chainstate loading when instantiating a ChainstateManager
2508d94192f kernel: Add chainstate manager option for setting worker threads
514bbe5ad80 kernel: Add chainstate manager object to C header
341b00345ce kernel: Add notifications context option to C header
3cde1d242b8 kernel: Add chain params context option to C header
51f3d54d0d4 kernel: Add kernel library context object
c3424d8750e kernel: Add logging to kernel library C header
7d4163c0afa kernel: Introduce initial kernel C header API
d20f10affba Merge bitcoin/bitcoin#33268: wallet: Identify transactions spending 0-value outputs, and add tests for anchor outputs in a wallet
9a5ba154bea Merge bitcoin/bitcoin#33310: trace: Workaround GCC bug compiling with old systemtap
853f0d88114 Merge bitcoin/bitcoin#33364: ci: always use tag for LLVM checkout
b81445333a1 Merge bitcoin/bitcoin#33243: test: Fix CLI_MAX_ARG_SIZE issues
f757da87f59 Merge bitcoin/bitcoin#33332: common: Make arith_uint256 trivially copyable
e416dc2fbbb Merge bitcoin/bitcoin#33321: kernel: make blockTip index const
176fac0f16d Merge bitcoin/bitcoin#33141: test: Remove polling loop from test_runner (take 2)
593d5fe37d7 Merge bitcoin/bitcoin#33354: txgraph: use enum Level instead of bool main_only
653a9849d5f common: Make arith_uint256 trivially copyable
b736052e39f ci: always use tag for LLVM checkout
d45f3717d2c txgraph: use enum Level instead of bool main_only
ee42d59d4de Merge bitcoin-core/gui#886: Avoid pathological QT text/markdown behavior...
2c8a478db4b Merge bitcoin/bitcoin#33231: net: Prevent node from binding to the same `CService`
591eea7b5ac Merge bitcoin/bitcoin#33082: wallet, refactor: Remove Legacy check and error
6a371b70c87 gui: Avoid pathological QT text/markdown behavior...
c0894a0a2be Merge bitcoin/bitcoin#33348: contrib: add bitcoin binary to gen-manpages
53e6db91ef5 contrib: add placeholder manpage for bitcoin binary
f5887a8de4c contrib: add bitcoin binary to gen-manpages
314c42b55bd Merge bitcoin/bitcoin#33347: build: bump `CLIENT_VERSION_MAJOR` to 30
9f744fffc39 build: bump CLIENT_VERSION_MAJOR to 30
042817ddb84 Merge bitcoin/bitcoin#33346: doc: remove release note fragment
0f0e6fe7f5f doc: remove release note fragment
84cf5420398 Merge bitcoin/bitcoin#33275: Release: 30.0 translations update
13809b867ad Merge bitcoin/bitcoin#33303: ci: Checkout latest merged pulls
e749205f83d Merge bitcoin/bitcoin#33319: ci: reduce runner sizes on various jobs
9cbd346daa5 Merge bitcoin/bitcoin#33340: Fix benchmark CSV output
4776179be9f Merge bitcoin/bitcoin#33342: guix: strip binaries in libexec
0ba44d9c38a Merge bitcoin/bitcoin#33296: net: check for empty header before calling FillBlock
1861030bea7 Merge bitcoin/bitcoin#30469: index: Fix coinstats overflow
8b626476803 test: send duplicate blocktxn message in p2p_compactblocks.py
5e585a0fc4f net: check for empty header before calling FillBlock
cb825a07ac6 Merge bitcoin/bitcoin#33338: net: Add interrupt to pcp retry loop
0b0bd74c3e9 Merge bitcoin/bitcoin#33312: clang-tidy: Disable `UndefinedBinaryOperatorResult` check in `src/ipc`
790b440197b Fix benchmark CSV output
3cceda9f485 guix: strip binaries in libexec
3eea9fd3953 Merge bitcoin/bitcoin#33308: doc: fix `LIBRARY_PATH` comment
0b38cc9bf7a Merge bitcoin/bitcoin#33339: doc: move release notes to wiki pre branch off
b320f5efa17 qt: 30.0 translations update
905c1a77f51 doc: move release notes to wiki pre branch off
2d799590fee Merge bitcoin/bitcoin#33283: contrib: update fixed seeds
188de70c864 net: Add interrupt to pcp retry loop
9c6fa07b124 Merge bitcoin/bitcoin#33322: Update libmultiprocess subtree to improve build and logs
c7679748115 clang-tidy: Fix critical warnings
54dc34ec227 index: Remove unused coinstatsindex recovery code
37c4fba1f4c index: Check BIP30 blocks when rewinding Coinstatsindex
51df9de8e5b doc: Add release note for 30469
bb8d6731832 test: Add coinstatsindex compatibility test
b2e8b64ddc3 index, refactor: Append blocks to coinstatsindex without db read
431a076ae6e index: Fix coinstatsindex overflow issue
fa8f081af31 ci: Checkout latest merged pulls
36e40417de3 Merge bitcoin-core/gui#884: Fix compatibility with `-debuglogfile` command-line option
a4ee70e5b69 Merge commit 'a334bbe9b79ddf1999003c792bc8945639b7e9c1' into pr/subtree-4
a334bbe9b79 Squashed 'src/ipc/libmultiprocess/' changes from 1b8d4a6f1e54..13424cf2ecc1
e04cb9c1bdf Merge bitcoin/bitcoin#33201: Add functional test for IPC interface
75d9b724757 kernel: make blockTip index const
a341e11ac92 ci: test IPC on additional hosts
6aee573bfcf ci: enable IPC tests in CI
8d2ee88fa2a tests: add functional tests for IPC interface
3cc9a06c8dd test: Add TestNode ipcbind option
3cceb60a715 test: Provide path to `bitcoin` binary
8c7f0056291 test: add is_ipc_compiled() and skip_if_no_ipc() functions
37c21ebe407 Merge bitcoin/bitcoin#33309: doc: archive v29.1 release notes
32e2484b67e Merge bitcoin/bitcoin#33304: depends: strip when installing qt binaries
4d4789dffad net: Prevent node from binding to the same CService
647cdb4f7e8 Merge bitcoin/bitcoin#33311: net: Quiet down logging when router doesn't support natpmp/pcp
589b65f06c3 clang-tidy: Disable `UndefinedBinaryOperatorResult` check in `src/ipc`
4f1a4cbccd7 net: Quiet down logging when router doesn't support natpmp/pcp
93a29ff2830 trace: Workaround GCC bug compiling with old systemtap
5eeb2facbbb ci: reduce runner sizes on various jobs
61ec8866c63 [doc] archive v29.1 release notes
a2a35b58cb9 doc: fix LIBRARY_PATH comment
e1ce0c525c7 Merge bitcoin/bitcoin#33291: ci: cd into BASE_BUILD_DIR for GetCMakeLogFiles
84e813a02bb index, refactor: DRY coinbase check
fab842b3248 index, refactor: Rename ReverseBlock to RevertBlock
2d8f5b91881 Merge bitcoin/bitcoin#33136: ci: Remove redundant RUN_UNIT_TESTS_SEQUENTIAL
c9d5f211c11 depends: strip when installing qt
fae610d8581 ci: Remove redundant RUN_UNIT_TESTS_SEQUENTIAL
2562fe1b2b6 Merge bitcoin/bitcoin#32159: net, pcp: handle multi-part responses and filter for default route while querying default gateway
ed2ff3c63d8 Merge bitcoin/bitcoin#33235: build: set ENABLE_IPC to OFF when fuzzing
88db09bafe9 net: handle multi-part netlink responses
113a4228229 wallet: Add m_cached_from_me to cache "from me" status
609d265ebc5 test: Add a test for anchor outputs in the wallet
c40dc822d74 wallet: Throw an error in sendall if the tx size cannot be calculated
39a7dbdd277 wallet: Determine IsFromMe by checking for TXOs of inputs
e76c2f7a411 test: Test wallet 'from me' status change
689a3219763 Merge bitcoin/bitcoin#33220: doc: truc packages allow sub min feerate transactions
9b76eef2d2b ci: cd into BASE_BUILD_DIR for GetCMakeLogFiles
939678940f6 contrib: update fixed seeds
6cdd8ee6761 contrib: update makeseeds minblocks
b8da9f4034e contrib: update makeseeds UA regex
ba0b4304ece Merge bitcoin/bitcoin#32989: ci: Migrate CI to hosted Cirrus Runners
0eb3eae5486 Merge bitcoin/bitcoin#33274: kernel: chainparams & headersync updates for 30.0
fa4885ef2fd test: Remove polling loop from test_runner
7270839af42 doc: truc packages allow sub min feerate transactions
46369583f3a Merge bitcoin/bitcoin#33224: doc: unify `datacarriersize` warning with release notes
755152ac819 kernel: add testnet4 assumeutxo param at height 90'000
a6512686e33 kernel: add mainnet assumeutxo param at height 910'000
943de66b504 kernel: update headersync params
66fb9624264 kernel: update chainTxData
c3cb26e0283 kernel: update assumevalid and minimumChainWork
b4adae76d46 kernel: update assumed blockchain & chainstate sizes
7e58c94112d Merge bitcoin/bitcoin#33269: test: Fixup fill_mempool docstring
3c5da69a232 ci: remove un-needed lint_run*.sh files
2aa288efdda ci: fix annoying docker warning
dd1c5903e8d ci: add ccache hit-rate warning when < 75%
f4272844833 doc: Detail configuration of hosted CI runners
3f339e99e00 ci: dynamically match makejobs with cores
4393ffdd837 ci: remove .cirrus.yml
bc41848d00f ci: port lint
d290a8e6eab ci: port msan-depends
9bbae61e3b4 ci: port tsan-depends
bf7d5364527 ci: port tidy
549074bc643 ci: port centos-depends-gui
58e38c3a042 ci: port previous-releases-depends-debug
341196d75c3 ci: port fuzzer-address-undefined-integer-nodepends
f2068f26c12 ci: port no-IPC-i686-DEBUG
2a00b12d73b ci: port nowallet-libbitcoinkernel
9c2514de534 ci: port mac-cross-gui-notests
2c990d84a3d ci: force reinstall of kernel headers in asan
884251441bb ci: update asan-lsan-ubsan
f253031cb8e ci: port arm 32-bit job
04e7bfbceb0 ci: update windows-cross job
cc1735d7771 ci: add job to determine runner type
020069e6b71 ci: add Cirrus cache host
9c2b96e0d03 ci: have base install run in right dir
18f6be09d02 ci: use docker build cache arg directly
94a09325475 ci: use buildx in ci
fdf64e55324 ci: add configure-docker action
33ba073df7a ci: add REPO_USE_CIRRUS_RUNNERS
b232b0fa5e9 ci: add caching actions
b8fcc9fcbcd ci: add configure environment action
fa3f682032a test: Fixup fill_mempool docstring
7cc9a087069 Merge bitcoin/bitcoin#33253: Revert compact block cache inefficiencies
084fd68fda2 Merge bitcoin/bitcoin#33258: ci: use LLVM 21
6ff2d423625 Merge bitcoin/bitcoin#33189: rpc: followups for 33106
4d54bb2b92c Merge bitcoin/bitcoin#33264: threading: reduce the scope of lock in getblocktemplate
9ae23950ef8 Merge bitcoin/bitcoin#33261: ci: return to using dash in CentOS job
493ba0f6883 threading: reduce the scope of lock in getblocktemplate
509ffea40ab ci: return to using dash in CentOS job
b7b249d3adf Revert "[refactor] rewrite vTxHashes as a vector of CTransactionRef"
b9300d8d0a7 Revert "refactor: Simplify `extra_txn` to be a vec of CTransactionRef instead of a vec of pair<Wtxid, CTransactionRef>"
df5a50e5de2 bench/blockencodings: add compact block reconstruction benchmark
4cf0ae474ba ci: use LLVM 21
fa96a4afea2 ci: Enable CI_LIMIT_STACK_SIZE=1 in i686_no_ipc task
facfde2cdce test: Fix CLI_MAX_ARG_SIZE issues
6ca6f3b37b9 Merge bitcoin/bitcoin#33241: Update libmultiprocess subtree to fix build issues
9703b7e6d56 Merge bitcoin/bitcoin#32592: threading: remove ancient CRITICAL_SECTION macros
dd68d0f40b6 Squashed 'src/ipc/libmultiprocess/' changes from b4120d34bad2..1b8d4a6f1e54
323b3fd2728 Merge commit 'dd68d0f40b614474f24469fbe1ba02f8f9146b31' into pr/subtree-3
d3c5e47391e wallet, refactor: Remove Legacy check and error
73220fc0f95 Merge bitcoin/bitcoin#33212: index: Don't commit state in BaseIndex::Rewind
46ca7712cb5 threading: remove unused template instantiations
b537a6a6dbd threading: remove obsolete critsect macros
0d0e0a39b4a threading: use a reverse lock rather than manual critsect macros
3ddd554d318 tests: Add Assertions in reverse_lock tests to exercise thread-safety annotations
c88b1cbf57a tests: get rid of remaining manual critsect usage
2c223de2af7 Merge bitcoin/bitcoin#33237: doc: use new block_to_connect parameter name
02f6758e0ce Merge bitcoin/bitcoin#33233: doc: follow-ups to "Add bitcoin-{node,gui} to release binaries for IPC"
682bd04462d Merge bitcoin/bitcoin#33236: doc: Remove wrong and redundant doxygen tag
a9701de0c9f Merge bitcoin/bitcoin#33217: depends: remove xinerama extension from libxcb
78351ed083b Merge bitcoin/bitcoin#33222: miner: clamp options instead of asserting
de65c86572c doc: capnproto instruction for Alpine and Arch
49d1a1a3630 doc: add capnproto-devel to Fedora build instruction
a602f6fb7bf test: index with an unclean restart after a reorg
01b95ac6f49 index: don't commit state in BaseIndex::Rewind
1c3db0ed8e6 doc: use new block_to_connect parameter name
8333aa53029 Merge bitcoin/bitcoin#32523: wallet: Remove isminetypes
eab5518913a doc: mark bitcoin-{node,gui} installed in files.md
966666de9a6 doc: Remove wrong and redundant doxygen tag
af4156ab755 build: set ENABLE_IPC to OFF when fuzzing
2a815d126bc doc: link to capnp version bump PR
decc3671c88 guix: remove libxcb-xinerama.so.0 from allowed libs
3d9314f3838 depends: remove xinerama extension from libxcb
7d9789401be Merge bitcoin/bitcoin#31802: Add bitcoin-{node,gui} to release binaries for IPC
2885bd0e1c4 doc: unify `datacarriersize` warning with release notes
be776a1443f wallet: Remove isminetype
009a69a616c wallet: Remove ISMINE_USED
6a7aa015747 wallet: Remove COutput::spendable and AvailableCoinsListUnspent
7392b8b084b miner: clamp options instead of asserting
620abe985e5 interfaces, gui: Remove is_mine output parameter from getAddress
c0d28c8f5b1 qt: Fix compatibility with `-debuglogfile` command-line option
daa40a3ff97 doc fixups for 33106
c568511e8ce test fixup for incremental feerate
636fa219d37 test fixups
9169a50d529 [rpc] expose blockmintxfee via getmininginfo
ce7d94a492e doc: add release note
71f29d4fa90 doc: update build and dependencies docs for IPC
3cbf747c328 cmake: set ENABLE_IPC by default
32a90e1b901 ci: use bitcoin-node for one depends job
b333cc14d50 ci: build one depends job without multiprocess
16bce9ac4cd build: depends makes libmultiprocess by default
30c6f64eed3 test: Remove unnecessary LoadWallet() calls
42e99ad7739 net: skip non-route netlink responses
57ce645f05d net: filter for default routes in netlink responses
REVERT: bce88ae28ab kernel: Fix bitcoin-chainstate for windows
REVERT: 3a7e9f0eafa kernel: Add Purpose section to header documentation
REVERT: 5bae79ace52 kernel: Allowing reducing exports
REVERT: d0308a2489f kernel: Add pure kernel bitcoin-chainstate
REVERT: 05a569070c8 kernel: Add functions to get the block hash from a block
REVERT: 8566ec6e839 kernel: Add block index utility functions to C header
REVERT: b4d0e80f846 kernel: Add function to read block undo data from disk to C header
REVERT: 488999ac77f kernel: Add functions to read block from disk to C header
REVERT: 3dc76bb7f79 kernel: Add function for copying block data to C header
REVERT: 6151b45a426 kernel: Add functions for the block validation state to C header
REVERT: 5d00432f270 kernel: Add validation interface to C header
REVERT: facf209aee4 kernel: Add interrupt function to C header
REVERT: 129f553e4ef kernel: Add import blocks function to C header
REVERT: f7ed7b944df kernel: Add chainstate load options for in-memory dbs in C header
REVERT: 67d9f53a986 kernel: Add options for reindexing in C header
REVERT: ebc826319fc kernel: Add block validation to C header
REVERT: 511a1c8a785 kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: aad295899ea kernel: Add chainstate manager option for setting worker threads
REVERT: c701cb2405e kernel: Add chainstate manager object to C header
REVERT: 1df8b876024 kernel: Add notifications context option to C header
REVERT: 571c1a2acb9 kernel: Add chain params context option to C header
REVERT: a2cab9f1cd6 kernel: Add kernel library context object
REVERT: 944ef6b630a kernel: Add logging to kernel library C header
REVERT: d0cb841fbae kernel: Introduce initial kernel C header API

git-subtree-dir: depend/bitcoin
git-subtree-split: 0fc068b735d267c7ef4a3b23e32dab1771df2509
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.

10 participants