Skip to content

p2p: remove m_getaddr_sent - #34717

Merged
sedited merged 2 commits into
bitcoin:masterfrom
naiyoma:2026_1/m_getaddr_sent
Sep 22, 2026
Merged

sedited merged 2 commits into
bitcoin:masterfrom
naiyoma:2026_1/m_getaddr_sent

Conversation

@naiyoma

@naiyoma naiyoma commented Mar 3, 2026 •

Copy link
Copy Markdown
Contributor

This PR removes m_getaddr_sent, as it no longer behaves as originally intended. Initially, this flag was meant to track when a getaddr message was sent to a peer.

Now that the initial self-announcements are sent separately from getaddr responses, the self-announcement sets m_getaddr_sent to false even though we are still waiting for the getaddr response (1000 addresses).
When the getaddr response does arrive, we rely on the size of the addr message, not the flag, to decide whether it should be relayed. This makes the flag redundant.

This is the current behavior:

Removing this flag ensures that:

  • The initial self-announcement is relayed.
  • The getaddr response is still not relayed, using the existing size-based check.

I had initially considered an alternative approach naiyoma#14, where the self-announcement would not affect this flag and would therefore retain the initial behaviour, but i decided to reattempt its removal, as this was previously attempted, see #19794. Given the changes since then, I believe revisiting it is now more appropriate.

@DrahtBot DrahtBot added the P2P label Mar 3, 2026
@DrahtBot

DrahtBot commented Mar 3, 2026 •

Copy link
Copy Markdown
Contributor

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

Code Coverage & Benchmarks

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

Reviews

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

Type Reviewers
ACK w0xlt, danielabrozzoni, mzumsande, sedited
Concept NACK taki-abedesselam
Stale ACK Crypt-iQ, stratospher

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #35502 (refactor: extract per-message helpers from ProcessMessage (move-only) by w0xlt)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@naiyoma

naiyoma commented Mar 3, 2026

Copy link
Copy Markdown
Contributor Author

Sharing this here in case it’s helpful for review.

  1. This PR also addresses the concern raised here → p2p: send first addr self-announcement in separate message 🎄 #34146 (comment). I found the comment a bit confusing, as I didn’t fully understand how the self-announcement is disadvantaged. That said, the flag being set incorrectly is true.

  2. The issue discussed here -> p2p: Remove fGetAddr flag #19794 (comment)
    Removing this flag means that we can relay a (small <= 10) getaddr reponse if an addrman is very small , maybe this is still an issue, but this flag will not prevent this from happening.

  3. If you cherry-pick this commit 481135858a743bc28fec20a45828293eb6512a18 you can test that this assertion https://github.com/bitcoin/bitcoin/blob/master/test/functional/p2p_addr_relay.py#L189 passes even without the flag, hence the deletion

  4. Some logs with the messages in order:

2026-02-25T10:48:57Z [net] ADDR recv: msg #1 from peer=15, contains 1 addresses
2026-02-25T10:48:57Z [net] ADDR msg #1 from peer=15: 1 received, 1 processed, 0 rate-limited, 0 relayed
2026-02-25T10:48:57Z [net] ADDR state: peer=15 m_getaddr_sent=true

2026-02-25T10:49:05Z [net] ADDR recv: msg #2 from peer=15, contains 999 addresses
2026-02-25T10:49:05Z [net] ADDR msg #2 from peer=15: 999 received, 999 processed, 0 rate-limited, 0 relayed
2026-02-25T10:49:05Z [net] ADDR state: peer=15 m_getaddr_sent=false

2026-02-25T10:49:28Z [net] ADDR recv: msg #3 from peer=15, contains 2 addresses
2026-02-25T10:49:28Z [net] ADDR relay: [2a02:908:530:c1a0:bd2e:450e:8330:e0f2]:8333 from msg #3 (peer=15)
2026-02-25T10:49:28Z [net] ADDR relay: j3og3zy5og3acpbcwl7jncmcobhfk66bmrphcev7ct6pjc765zi4t5id.onion:8333 from msg #3 (peer=15)
2026-02-25T10:49:28Z [net] ADDR msg #3 from peer=15: 2 received, 2 processed, 0 rate-limited, 2 relayed
2026-02-25T10:49:28Z [net] ADDR state: peer=15 m_getaddr_sent=false

msg # 1 message one is the self announcement

msg # 2 getaddr response

msg # 3 addresses to relay

@w0xlt

w0xlt commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Interesting. Concept ACK.

@chriszeng1010

Copy link
Copy Markdown

concept ack.

@stratospher stratospher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK 9e34acb1. nice find!

m_getaddr_sent logic is broken after #34146 and doesn’t do what it’s supposed to do anymore.

i think removing it is a logical bug fix which would be nice to have in v31. (not sure if it’s too late for that)

there would be a few behaviour changes with this PR:

  1. (might be debatable change) we would relay ADDR messages to peers just based on size ≤10. feel it's ok because:
    1. is it ok if someone send 5 ADDR as the GETADDR response (instead of the usual 1000 ADDR) and we relay it?
      1. we do GETADDR requests only to outbound peers ( so unlikely for it to be attacker controlled).
      2. in some remote scenario (where we got eclipsed) , suppose an attacker is chosen as our outbound peer - and it only sends us 5 ADDR as GETADDR response. we will relay it to our other peers once during the start of node’s lifecycle (wouldn’t have relayed these 5 ADDR before this PR). we also will have bigger problems to worry about than if address got relayed.
      3. there are much more effective ways for an attacker to force certain ADDR to be relayed than focus on the response to GETADDR - a normal node only sends GETADDR once during the version handshake.
  2. (good change -fixes an inconsistent behaviour on master) currently we don’t relay the 1st ADDR message received from an outbound peer with size ≤ 10. now we relay it.
  3. (good change) initial self announcement always gets relayed.

Comment thread test/functional/p2p_addr_relay.py Outdated
assert_equal(inbound_peer.num_ipv4_received, 0)

# Send an empty ADDR message to initialize address relay on this connection.

@stratospher stratospher Mar 5, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

9e34acb: nit: I think keeping this comment "# Send an empty ADDR message to initialize address relay on this connection." is useful.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I agree, it took me a minute to figure out what was going on here.

Also, unrelated to this PR, I noticed the outbound p2p connections are sending GETADDR that will get ignored.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

comment added back b5914990464e581731f8214c0ff1c3cb6b58cb94

@naiyoma naiyoma Mar 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Also, unrelated to this PR, I noticed the outbound p2p connections are sending GETADDR that will get ignored.

I think its because -> https://github.com/bitcoin/bitcoin/blob/master/src/net_processing.cpp#L4911

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also, unrelated to this PR, I noticed the outbound p2p connections are sending GETADDR that will get ignored.

Can you clarify? I don't see how this can happen.

We only send a GETADDR to our outbound, non-block-relay peers:

bitcoin/src/net_processing.cpp

Lines 3749 to 3767 in 2fe76ed

// Attempt to initialize address relay for outbound peers and use result
// to decide whether to send GETADDR, so that we don't send it to
// inbound or outbound block-relay-only peers.
bool send_getaddr{false};
if (!pfrom.IsInboundConn()) {
send_getaddr = SetupAddressRelay(pfrom, peer);
}
if (send_getaddr) {
// Do a one-time address fetch to help populate/update our addrman.
// If we're starting up for the first time, our addrman may be pretty
// empty, so this mechanism is important to help us connect to the network.
// We skip this for block-relay-only peers. We want to avoid
// potentially leaking addr information and we do not want to
// indicate to the peer that we will participate in addr relay.
MakeAndPushMessage(pfrom, NetMsgType::GETADDR);
peer.m_getaddr_sent = true;
// When requesting a getaddr, accept an additional MAX_ADDR_TO_SEND addresses in response
// (bypassing the MAX_ADDR_PROCESSING_TOKEN_BUCKET limit).
peer.m_addr_token_bucket += MAX_ADDR_TO_SEND;

And we only reply to GETADDR requests if they're from inbound connections:

bitcoin/src/net_processing.cpp

Lines 4816 to 4825 in 2fe76ed

if (msg_type == NetMsgType::GETADDR) {
// This asymmetric behavior for inbound and outbound connections was introduced
// to prevent a fingerprinting attack: an attacker can send specific fake addresses
// to users' AddrMan and later request them by sending getaddr messages.
// Making nodes which are behind NAT and can only make outgoing connections ignore
// the getaddr message mitigates the attack.
if (!pfrom.IsInboundConn()) {
LogDebug(BCLog::NET, "Ignoring \"getaddr\" from %s connection. peer=%d\n", pfrom.ConnectionTypeAsString(), pfrom.GetId());
return;
}

So, I think this happens:

(--> means the direction of the connection, so outbound for the node on the left, inbound for the node on the right)

+------+            +------+
| Node | ---------> | Node |
+------+            +------+
         -> getaddr
         <- addr

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you clarify? I don't see how this can happen.

The test does it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Got it, sorry for the confusion

@fanquake

fanquake commented Mar 5, 2026

Copy link
Copy Markdown
Member

cc @mzumsande

@Crypt-iQ Crypt-iQ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

crACK 9e34acb1dbff61efb1c5e4e9cfce2a4591c2832f

The first addr message is relayed because the flag is false(this was not the case before #34146).

Can you elaborate? It seems like the very first addr message was not being relayed, like you said?

Comment thread test/functional/p2p_addr_relay.py Outdated
assert_equal(inbound_peer.num_ipv4_received, 0)

# Send an empty ADDR message to initialize address relay on this connection.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I agree, it took me a minute to figure out what was going on here.

Also, unrelated to this PR, I noticed the outbound p2p connections are sending GETADDR that will get ignored.

@fanquake

fanquake commented Mar 6, 2026

Copy link
Copy Markdown
Member

cc @0xB10C

@naiyoma

naiyoma commented Mar 6, 2026

Copy link
Copy Markdown
Contributor Author
  1. (good change -fixes an inconsistent behaviour on master) currently we don’t relay the 1st ADDR message received from an outbound peer with size ≤ 10. now we relay it.

Thanks for reviewing
A quick clarification on this: we started relaying the first ADDR message after PR 34146, not this PR.
This is because the self-announcement sets this flag to false. If you look at the logs here -> #34717 (comment)
The first ADDR message, which is message 3 (msg # 3) that you are referring to, is being relayed, also, notice that by the time we receive this message, m_getaddr_sent = false, so the relay condition is true.

@naiyoma

naiyoma commented Mar 6, 2026

Copy link
Copy Markdown
Contributor Author

crACK 9e34acb

The first addr message is relayed because the flag is false(this was not the case before #34146).

Can you elaborate? It seems like the very first addr message was not being relayed, like you said?

For the first regular ADDR after the GETADDR response, this condition was false because m_getaddr_sent was true

if (addr.nTime > current_a_time - 10min && !peer->m_getaddr_sent && vAddr.size() <= 10 && addr.IsRoutable()) {

@mzumsande mzumsande left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Concept ACK

Just making clear that while #34146 had the effect that m_get_addr_sent doesn't match the GETADDR answer anymore, it didn't make anything worse: the flag was already unnecessary before (due to the <10 criterion), and the first self-announcement (when it was mixed into the 1000 size GETADDR answer) did not get relayed to peers before either.

So I'd say this PR doesn't correct a bug introduced by #34146, but improves logic that was already broken before.

@ajtowns

ajtowns commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

I think the intended logic is (was) "we sent a getaddr, therefore the next addr message we receive will probably be old information which we shouldn't relay further".

So #34146 did introduce a "bug" in that it became no longer true that next next addr message contained old information -- instead it would contain a self-announcement. That would then clear the flag, and we'd risk relaying the old information in the following addr message, that was in response to the getaddr request. The < 10 check and the 10 minute checks both probably made the impact of that "bug" pretty rare/trivial however. So I don't think this is urgent for 31.0.

I think this change is fine though -- the 10min and <10 check seem already sufficient: if we get a small response to our getaddr, that's full of (honestly) recent information, then relaying that is either good or at worst harmless; and if an attacker were trying to exploit that ability, they could simply have sent a dummy addr message, and the real attack data later, avoiding the m_get_addr_sent gate entirely.

I'm not sure that improved relay of self-announcements of nodes that only just connected to you is necessarily a good thing. Currently (and prior to #34146) your node's IP would likely only be relayed reliably once you've been connected to a peer for a couple of hours or so, which serves as an automatic way of avoiding cluttering up everyone's address book with (honest) nodes that start up, sync, and shut down. So Concept ~0. Code looks fine if the behaviour is desirable, though.

@mzumsande

Copy link
Copy Markdown
Contributor

I'm not sure that improved relay of self-announcements of nodes that only just connected to you is necessarily a good thing.

Does this have the direction mixed up? This is about improved relay of self-announcements originating from peers that we connected to - we, the initiating node, issue the GETADDR request, set m_get_addr_sent and process the answer / the self-announcement of that peer and maybe relay it further. So the affected self-announcements are those from reachable, usually reliable nodes (after all we picked them somehow).

The reverse direction (we, a possibly new/unreliable node, connect to a peer, and our own self-advertisment gets relayed by that peer or not) is not affected by this PR at all I think because this would involve m_getaddr_recvd instead of m_get_addr_sent.

@Crypt-iQ

Crypt-iQ commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

reACK b5914990464e581731f8214c0ff1c3cb6b58cb94

@ajtowns

ajtowns commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Does this have the direction mixed up? This is about improved relay of self-announcements originating from peers that we connected to - we, the initiating node, issue the GETADDR request, set m_get_addr_sent and process the answer / the self-announcement of that peer and maybe relay it further. So the affected self-announcements are those from reachable, usually reliable nodes (after all we picked them somehow).

Yeah, it does have the direction mixed up. Still not sure how much benefit it makes to relay the initial self-announcement though. If they're already reachable/reliable nodes, then their address is already well known, and only getting re-announced by long-term connections is probably not terrible? I guess if it weren't useful to relay it, the peer shouldn't bother sending it to us -- we've already connected successfully, so we already have a working address for the peer and don't need to be told; so why else would they send it unless they wanted it relayed so others could more easily connect to them? Delaying the self-announcement until the connection's been alive a random amount of time would obviously be possible on the sender's side; (eg suggested here) so why treat it specially on the receiver side?

I guess this doesn't have privacy implications -- I don't think you can distinguish a relayed self-announcement between being one of our outbounds or one of our inbounds; and distinguishing an addr relay for a direct connection vs a random forwarded addr seems like it requires a long-term connection and probably a lot of probability analysis?

From #19794 (comment) :

(I wish the response to a getaddr was a different message type than an unsolicited address being relayed to us!)

I suppose that's something we could consider. I suppose we could also consider limiting our GETADDR responses to addr entries that are more than 10min old, or artificially inflating the ages of the addresses we send to ensure they're more than 10min old (and perhaps documenting that in a BIP so other node software that cares about the privacy concerns raised in that comment can implement compatible logic).

@taki-abedesselam

taki-abedesselam commented Mar 9, 2026 •

Copy link
Copy Markdown

Concept NACK

I do not agree with this solution for removing m_getaddr_sent. Instead we should consider reusing it. I believe there is a significant issue in the bitcoin code: it gives a malicious neighbor node the ability to abuse our unsolicited message relaying. This could happen as follows :

  • We establish an outbound connection to a node X.
  • We increase the token counter to +1000 tokens since we expect to receive up to 1000 addresses in response from node X.
  • Node X sends a buffer containing only 1 address, to bypasses the initial m_getaddr_sent check (or this protection disappears entirely if the variable is removed as proposed in this PR)
  • Node X then starts sending unsolicited messages of size 10, since it knows it can use up to 1000 tokens (each address they will consume 1 token and if the number of addresses in the buffer is less or equal to 10 our node will relay it).
  • Our node become an intermediate relay, unintentionally helping hide this malicious node, since its (our node) the one who will relay the unsolicited messages.
  • Our node they will consume all of its tokens with other nodes by forwarding malicious addresses instead of forwarding addresses for legitimate nodes.

For these reasons, instead of removing m_getaddr_sent, we should keep it and improve the token handling logic for GETADDR messages.

@Crypt-iQ

Crypt-iQ commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

I do not agree with this solution for removing m_getaddr_sent. Instead we should consider reusing it. I believe there is a significant issue in the bitcoin code: it gives a malicious neighbor node the ability to abuse our unsolicited message relaying.

Can't this be done independent of this patch? Also, the GETADDR is only sent for outbound connections so its impact is limited?

@ajtowns

ajtowns commented Mar 9, 2026

Copy link
Copy Markdown
Contributor
  • We increase the token counter to +1000 tokens since we expect to receive up to 1000 addresses in response from node X.

I think this doesn't make sense -- if we want to treat addresses received as a response to "GETADDR" differently, then m_getaddr_sent should be a bucket that's normally 0, but is bumped to 1000 when we send "GETADDR". Then the idea might be:

    bool relay{true};
    if (peer.m_addr_token_bucket < 1.0) {
        if (rate_limited) {
            if (m_getaddr_bucket == 0) {
                ++num_rate_limit; continue;
           } else {
                 --m_getaddr_bucket;
                relay = false;
           }
        }
    } else {
        peer.m_addr_token_bucket -= 1.0;
    }
    ...
    if (relay && addr.nTime > current_a_time - 10min && vAddr.size() <= 10 && addr.IsRoutable()) {
        // Relay to a limited number of other nodes
        RelayAddress(pfrom.GetId(), addr, reachable);
    }

@naiyoma

naiyoma commented Mar 9, 2026

Copy link
Copy Markdown
Contributor Author

This doesn't need to be part of v31. As mentioned above, even though it is possible for us to relay a GETADDR response currently, the probability is low because the default node behaviour will almost always have around 1000 addresses (> 10 addresses, hence we don't relay), and GETADDR responses are usually older.

@fanquake fanquake removed this from the 31.0 milestone Mar 9, 2026
The flag was intended to track whether we sent a GETADDR to a peer,
but it became redundant after the initial self-announcement sets it to false,
even though we still expect the actual getaddr response.

Co-authored-by: Martin Zumsande <[email protected]>
@naiyoma
naiyoma force-pushed the 2026_1/m_getaddr_sent branch from 016077e to c8ee319 Compare March 26, 2026 10:18
@naiyoma

naiyoma commented Mar 26, 2026

Copy link
Copy Markdown
Contributor Author

Rebased,

@danielabrozzoni danielabrozzoni left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Concept ACK, code looks good, but I need to spend some more time thinking about this before ACKing :)

I think there's a small source of confusion in the PR description, and here:

This is the current behavior:

  • The initial self-announcement is not relayed but it flips m_getaddr_sent to be false
  • We use addr.size() to avoid relaying (1000) getaddr response.(assuming the other two flags are false)
  • The first addr message is relayed because the flag is false(this was not the case before p2p: send first addr self-announcement in separate message 🎄 #34146).

What you're calling "the first addr message" is really the second ADDR message, the first one being the initial self announcement. So it's correct to say that in master the first ADDR message (the self announcement) is not relayed, and subsequent ADDR messages are relayed.

# of the outbound peer which is often sent before the GETADDR response.
assert_equal(inbound_peer.num_ipv4_received, 0)

self.log.info('Check that subsequent addr messages sent from an outbound peer are relayed')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: 'subsequent' here made sense when read after 'Check that the first message is not relayed'. Since we are deleting that part of the test, this should be changed to something like 'Check that every addr message sent from an outbound peer is relayed'.

Comment thread test/functional/p2p_addr_relay.py Outdated
assert_equal(inbound_peer.num_ipv4_received, 0)

# Send an empty ADDR message to initialize address relay on this connection.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Got it, sorry for the confusion

@naiyoma

naiyoma commented Mar 31, 2026

Copy link
Copy Markdown
Contributor Author

What you're calling "the first addr message" is really the second ADDR message,

its actually the third addr message, if you see the logs I posted here -> #34717 (comment)

the first message is the self announcement,
the second is the getaddr response
the third is the few addresses we want to relay

It's true, this is confusing; it's not easy to distinguish these messages. What I am referring to here as the first addr message is the first addr message to be relayed, but it's the third in order of messages received

the first one being the initial self announcement. So it's correct to say that in master the first ADDR message (the self announcement) is not relayed, and subsequent ADDR messages are relayed.

The next addr message after the self announcement is not relayed because it's the getaddr addr response, and we have this size check vAddr.size() <= 10 to prevent this.

Perhaps this is clearer? -> The first addr message after a getaddr response is relayed because the flag is false(this was not the case before #34146).

@w0xlt w0xlt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK c8ee319

If an outbound peer does not send an initial self-announcement, master still has m_getaddr_sent == true when it processes the first ADDR reply to our GETADDR.

That suppresses relay of a small fresh routable response (<=10 addrs). This PR removes that distinction, so such GETADDR replies would now be relayed.

It might be worth documenting this minor behavior change.

@danielabrozzoni danielabrozzoni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

tACK c8ee319

What often happens right now is that we send a getaddr, and receive the self announcement of the peer before the getaddr response:

us                          peer
 |---- getaddr ------------>|
 |<--- addr (self, size=1)--|
 |<--- addr (response, usually size=1000)

With the m_getaddr_sent flag, the first addr received is treated as if it was the getaddr response, and as such it sets m_getaddr_sent to false, and is not relayed. The second addr received is the getaddr response, and might get relayed if its size is <10.
It's cleaner to remove the m_getaddr_sent flag altogether, since it often doesn't reflect whether a getaddr response has been received or not. The effect of this is:

  • we will start relaying our peer's first self announcement
  • we might relay the getaddr response if its size is <10 - similarly to what we might do now, in master, if we received the self announcement first and a small getaddr response second

I would like to see a1ecda2#r2995359668 fixed if you push again :)

its actually the third addr message...

Yes, sorry about that!

Perhaps this is clearer?

Yes, I think so :)

@Crypt-iQ

Copy link
Copy Markdown
Contributor

The code makes sense, though I think there can be more discussion of #34717 (comment) and its links:

  • is there a privacy leak with the initial self-announcement relay? is it even beneficial if the peer already knows the address?
  • is relaying the response to a GETADDR a privacy leak? This comment suggests it is, though I want to point out that the response would be split up (due to separate RelayAddress calls) among your peers unless you have few peers. The scenario mentioned in the linked comment could be more clear, I couldn't figure it out from reading it.

Also #19794 mentions if the GETADDR response is exactly 1000, the next ADDR message will not be relayed. This is to support other clients that send multiple ADDR messages in response. If a client sends the first part of the response with size 1000 and the next part with size <= 10, the second part will get relayed if the flag is removed. Don't know if this is a concern?

@naiyoma

naiyoma commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor Author

is there a privacy leak with the initial self-announcement relay?

So far, I haven’t identified any privacy risks. From Aj’s comment, this would only be an issue if we could distinguish whether it is from an inbound or outbound connection.

is it even beneficial if the peer already knows the address?

I don’t think this self-announcement would benefit us much, However, other peers might benefit from it if they are not aware of the address or haven’t heard about it recently, as it would allow them to update it. Simply receiving the address without relaying using it wouldn’t be beneficial.

is relaying the response to a GETADDR a privacy leak? This comment suggests it is, though I want to point out that the response would be split up (due to separate RelayAddress calls) among your peers unless you have few peers. The scenario mentioned in the linked comment could be more clear, I couldn't figure it out from reading it.

This is my understanding of the initial privacy risk being discussed-> #19794 (comment). I’m not 100% sure it exactly matches the original discussion, but I think this flow makes sense:

  • Node A just bootstrapped and has an empty AddrMan
  • Node A sends GETADDR to Node B
  • Node B responds with 9 addresses
  • Node A relays those 9 addresses to Node C
  • Node A adds those 9 addresses to its AddrMan

As a result, Node C can infer which peers Node A is likely to connect to next.

So, a potential solution to prevent this is the complete separation of getaddr messages and addr relay messages.
That way, there would be no possibility of relaying getaddr responses, which is what has been suggested here:

“I wish the response to a getaddr was a different message type than an unsolicited address being relayed to us!”

Overall, to me, this feels like the best long-term approach. Helps us avoid relying on heuristics that can be gamed or are difficult to verify, such as time and size, and instead provides a clearer separation of concerns with message types.

Ajs suggestions -> #34717 (comment)

I suppose we could also consider limiting our GETADDR responses to addr entries that are more than 10min old,

I think this might be problematic for a small AddrMan.
I also think this filtering could reduce the number of getaddr responses, especially when the AddrMan is small.

or artificially inflating the ages of the addresses we send to ensure they're more than 10min old

this seems okay. I don’t see any downsides, and I’m fine with adding this to the PR.

Taki's suggested having a separate bucket for getaddr -> #34717 (comment)

good idea to separate the logic of the response from normal forwarding, could i also suggest the following: that during the first X seconds we are expecting that we will receive a self-announcement and a response to our GETADDR message,

I haven’t tested it yet, but it could be a good solution.

Where I’m currently at with this PR:
I think it's safe to relay self-announcements.
I am figuring out the best approach for separating getaddr and addr relay.
I am also considering Aj’s and Taki’s solutions and testing each one

@Crypt-iQ

Crypt-iQ commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor

So far, I haven’t identified any privacy risks. From Aj’s comment, this would only be an issue if we could distinguish whether it is from an inbound or outbound connection.

The only thing I can think of is that the timestamp of the self-announcement for the node sending GETADDR might be earlier than the other side's timestamp for their self-announcement. If I'm right, to distinguish though, you'd need to be relayed both self-announcements.

However, other peers might benefit from it if they are not aware of the address or haven’t heard about it recently, as it would allow them to update it.

My point here (mentioned by @ajtowns above), that I didn't elaborate on, was that eventually the rest of the network would hear about it if our self-announcement is broadcast about once a day.

As a result, Node C can infer which peers Node A is likely to connect to next.

I think this assumes that C is the only other peer that A has? If A had more peers, the repeated calls to RelayAddress would split up the relay among A's peers.

I think both separate messages types and inflating the age make sense. I can't think of any hidden gotchas with inflating the age past the relay cut-off.

@naiyoma

naiyoma commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

As a result, Node C can infer which peers Node A is likely to connect to next.

I think this assumes that C is the only other peer that A has? If A had more peers, the repeated calls to RelayAddress would split up the relay among A's peers.

Yes, the only way I can see this being a real issue is an extreme edge case, where addrman is very small, and we have very few peers. Outside of that, it's hard to see how the privacy leak materializes.

@naiyoma

naiyoma commented May 6, 2026 •

Copy link
Copy Markdown
Contributor Author

So far, I haven’t identified any privacy risks. From Aj’s comment, this would only be an issue if we could distinguish whether it is from an inbound or outbound connection.

The only thing I can think of is that the timestamp of the self-announcement for the node sending GETADDR might be earlier than the other side's timestamp for their self-announcement. If I'm right, to distinguish though, you'd need to be relayed both self-announcements.

I think I understand this now.
It’s possible that this getaddr self-announcement will always have a fresher/newer timestamp. I think that, in addition to both being relayed to the same peer, timing may also matter. It has to happen within the same 24 hours; otherwise, the other self-announcement might sometimes have a newer timestamp.

Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Jun 28, 2026
…ng and other improvements

37cdd2a test: use static methods and clarify comment in addr_relay (stratospher)
ea3d9d5 test: protect outbound connection from eviction in getaddr_test (stratospher)
5b93c16 test: fix addr relay test silent pass and wrong peerinfo index (stratospher)

Pull request description:

  couple of improvements in the addr relay test:
    - fixes the silent test pass discovered in bitcoin/bitcoin#34717 (comment) (will remove this if that PR gets merged - the test doesn't fail even though #34717 changes the behaviour)
    - correct wrong peerinfo index
    - prevent intermittent disconnection warnings like the one shown below by protecting outbound peer from `ConsiderEviction`
    ```
      TestFramework (INFO): Check that we answer getaddr messages only once per connection
      TestFramework.p2p (WARNING): Connection lost to 127.0.0.1:58829 due to [Errno 54] Connection reset by peer
  ```
    - remove a no longer applicable test comment since we don't need to send initial GETADDR for intial self announcement anymore

ACKs for top commit:
  Bortlesboat:
    ACK 37cdd2a. Ran both `p2p_addr_relay.py` and `p2p_addr_selfannouncement.py` locally, both pass. Good catch on the stale `peerinfo` reference in `inbound_blackhole_tests` — that would silently check the wrong peer.
  naiyoma:
    ACK  37cdd2a
  mzumsande:
    Code Review ACK 37cdd2a

Tree-SHA512: 22e4f87f66569bfa629a68a8b440cd21b5285c6dad6eb7926514f2d74e16fe3711525b264f82765c83020be976a0438b8d2ab1e48e7c0b7d85437ee672d52324
BigcoinBGC pushed a commit to BigcoinBGC/bigcoin that referenced this pull request Jun 30, 2026
…ng and other improvements

802dce9 test: use static methods and clarify comment in addr_relay (stratospher)
43dc73e test: protect outbound connection from eviction in getaddr_test (stratospher)
06d5642 test: fix addr relay test silent pass and wrong peerinfo index (stratospher)

Pull request description:

  couple of improvements in the addr relay test:
    - fixes the silent test pass discovered in bitcoin/bitcoin#34717 (comment) (will remove this if that PR gets merged - the test doesn't fail even though #34717 changes the behaviour)
    - correct wrong peerinfo index
    - prevent intermittent disconnection warnings like the one shown below by protecting outbound peer from `ConsiderEviction`
    ```
      TestFramework (INFO): Check that we answer getaddr messages only once per connection
      TestFramework.p2p (WARNING): Connection lost to 127.0.0.1:58829 due to [Errno 54] Connection reset by peer
  ```
    - remove a no longer applicable test comment since we don't need to send initial GETADDR for intial self announcement anymore

ACKs for top commit:
  Bortlesboat:
    ACK 802dce9. Ran both `p2p_addr_relay.py` and `p2p_addr_selfannouncement.py` locally, both pass. Good catch on the stale `peerinfo` reference in `inbound_blackhole_tests` — that would silently check the wrong peer.
  naiyoma:
    ACK  802dce9
  mzumsande:
    Code Review ACK 802dce9

Tree-SHA512: 22e4f87f66569bfa629a68a8b440cd21b5285c6dad6eb7926514f2d74e16fe3711525b264f82765c83020be976a0438b8d2ab1e48e7c0b7d85437ee672d52324
@sedited

sedited commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

I'm a bit confused what the status here is. Is this just waiting for some final review, or is there need for further discussion about potential privacy leakage?

@naiyoma

naiyoma commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

I'm a bit confused what the status here is. Is this just waiting for some final review, or is there need for further discussion about potential privacy leakage?

there are two concerns that need more discussion.

Initial Self-Announcement Relay Privacy

It may be possible for an attacker to observe self-announcements and use timestamps to determine that fresher timestamps correspond to a direct outbound connection. This is not something I have personally observed. Maybe we can keep this flag and change its purpose to suppress relaying the initial self-announcement?

But what do we do with this initial self-announcement? If we are not relaying it, then why are we receiving it?

GETADDR Relay

We do not want to relay a GETADDR response. In practice, this is unlikely to happen to us.
However, if a peer has a very small addrman and only a few peers, then this can happen. Keeping this flag does not prevent it unless the outbound peer does not send us a self-announcement first.
What happens if there are clients that split their GETADDR responses into multiple ADDR messages?
In that case, the flag might still be helpful by preventing us from relaying the second ADDR message. However, the way I see it, clients that split their GETADDR responses may split them into more than two messages.
For example, a client could split the response across four ADDR messages. In that case, even with the flag, we would eventually end up relaying part of the response anyway.

Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Aug 19, 2026
…ng and other improvements

57bfa864fe69ea5610399f9db60cf2299930703a test: use static methods and clarify comment in addr_relay (stratospher)
7ee8c0abc629f0658b6c36f36b5da11c51cbb39d test: protect outbound connection from eviction in getaddr_test (stratospher)
ecb5ce6e76ef9391d636e7e4f6be7e3f7ed05550 test: fix addr relay test silent pass and wrong peerinfo index (stratospher)

Pull request description:

  couple of improvements in the addr relay test:
    - fixes the silent test pass discovered in bitcoin/bitcoin#34717 (comment) (will remove this if that PR gets merged - the test doesn't fail even though #34717 changes the behaviour)
    - correct wrong peerinfo index
    - prevent intermittent disconnection warnings like the one shown below by protecting outbound peer from `ConsiderEviction`
    ```
      TestFramework (INFO): Check that we answer getaddr messages only once per connection
      TestFramework.p2p (WARNING): Connection lost to 127.0.0.1:58829 due to [Errno 54] Connection reset by peer
  ```
    - remove a no longer applicable test comment since we don't need to send initial GETADDR for intial self announcement anymore

ACKs for top commit:
  Bortlesboat:
    ACK 57bfa864fe69. Ran both `p2p_addr_relay.py` and `p2p_addr_selfannouncement.py` locally, both pass. Good catch on the stale `peerinfo` reference in `inbound_blackhole_tests` — that would silently check the wrong peer.
  naiyoma:
    ACK  57bfa864fe69ea5610399f9db60cf2299930703a
  mzumsande:
    Code Review ACK 57bfa864fe69ea5610399f9db60cf2299930703a

Tree-SHA512: 22e4f87f66569bfa629a68a8b440cd21b5285c6dad6eb7926514f2d74e16fe3711525b264f82765c83020be976a0438b8d2ab1e48e7c0b7d85437ee672d52324
@sedited

sedited commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

@mzumsande @Crypt-iQ @stratospher can you take another look here and the comment that naiyoma left above?

@mzumsande mzumsande left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review ACK c8ee319

there are two concerns that need more discussion.

Initial Self-Announcement Relay Privacy

Self-announcements in general reveal a little bit of topology information via nTime, which is a (noisy) hop counter. I.e. if nTime is only a few seconds old, it is likely that the route from its originator took only 1 or 2 hops to us. If it is 9 minutes old, it took more hops. But that is inherent to address gossip relay, I see no reason to treat the initial self-announcement on a connection different than later ones. Plus, it is not different between inbound and outbound.

GETADDR Relay

I think that the scenario of a very small addrman is really unrealistic. Just the DNS seeds or fixed seeds should give us enough addresses so that we don't have a response <10. And even if we'd have such a small GETADDR response, all of our addresses in addrman are usually much older than 10 minutes anyway (GETADDR cache, 2h time penalty) so it would also fail the second check on not relayed anyway.

I think that this PR removes a non-functioning mechanism that was very brittle to begin with (because it relies on a assumed ordering of messages), so it is an improvement. if we want to do other improvements (I like ajtowns' suggestion in #34717 (comment)) they can be done separately in a follow-up.

@sedited sedited left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

utACK c8ee319

@sedited
sedited merged commit b7211ba into bitcoin:master Sep 22, 2026
26 checks passed
@stratospher

Copy link
Copy Markdown
Contributor

post-merge ACK c8ee319. we will be relaying an ip address from our addrman an exponential-distribution(24h) sooner. since we were able to make an outbound connection to it, it's reachable and it was already in our addrman. so we're circulating/refreshing timestamps of actually reachable addresses in the network so that they don't get evicted out. doing that sooner feels like a good thing.

Initial Self-Announcement Relay Privacy

Self-announcements in general reveal a little bit of topology information via nTime, which is a (noisy) hop counter.

+1, don't think this PR makes it worse than it is today. inbound initial self-announcements are already relayed which I feel is worse since someone can just connect to you and make you relay their addresses. other than the relevant factors which mzumsande mentioned above, this being a 1 address per ADDR message also does not reveal anything

I checked some data from the last 24 hours across 11 outbound connections in alice from peer.observer:

  • it would be 11 (maybe more and can vary) extra self announcements being relayed because of this PR.
  • Alice received 301 self-announcements (86% arrived alone), of which 159 were relayed onward. each address went to 1 or 2 peers, so that produced 241 outgoing ADDR messages:
    • 34 were relayed forward in a 1-address ADDR message
    • 198 in 2-10 address ADDR message
    • 9 in >10 address ADDR message

what I found interesting is that the relayed forward size has nothing to do with the size it arrived in - it's decided by whatever else happens to be sitting in the relay queue when the ~30s timer fired.

Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Sep 28, 2026
c8ee319fffa1b7674fad3a797cd6d5110435a74c net: remove m_getaddr_sent (naiyoma)
a1ecda2609965f623ec808bc870ff6d7f151a419 test: delete redundant addr relay assertion (naiyoma)

Pull request description:

  This PR removes `m_getaddr_sent`, as it no longer behaves as originally intended. Initially, this flag was meant to track when a getaddr message was sent to a peer.

  Now that the initial self-announcements are sent separately from getaddr responses, the self-announcement sets `m_getaddr_sent `to `false` even though we are still waiting for the getaddr response (1000 addresses).
  When the getaddr response does arrive, we rely on the size of the addr message, not the flag, to decide whether it should be relayed. This makes the flag redundant.

  This is the current behavior:

  - The initial self-announcement is not relayed but it flips m_getaddr_sent to be false
  - We use addr.size() to avoid relaying  (1000) getaddr response.(assuming the other two flags are false)
  - The first addr message is relayed because the flag is  false(this was not the case before bitcoin/bitcoin#34146).

  Removing this flag ensures that:

  - The initial self-announcement is relayed.
  - The getaddr response is still not relayed, using the existing size-based check.

  I had initially considered an alternative approach naiyoma/bitcoin#14, where the self-announcement would not affect this flag and would therefore retain the initial behaviour, but i decided to reattempt its removal, as this was previously attempted, see bitcoin/bitcoin#19794. Given the changes since then, I believe revisiting it is now more appropriate.

ACKs for top commit:
  w0xlt:
    ACK c8ee319fffa1b7674fad3a797cd6d5110435a74c
  danielabrozzoni:
    tACK c8ee319fffa1b7674fad3a797cd6d5110435a74c
  mzumsande:
    Code Review ACK c8ee319fffa1b7674fad3a797cd6d5110435a74c
  sedited:
    utACK c8ee319fffa1b7674fad3a797cd6d5110435a74c

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

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

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 38aedda9e983f6dd1df7f3ec7bc5f1d0782e9459
stickies-v added a commit to stickies-v/py-bitcoinkernel that referenced this pull request Oct 15, 2026
4bacf21a13c2 Merge bitcoin/bitcoin#36474: ci: Run valgrind --exclude tests again
acdb32693417 Merge bitcoin/bitcoin#35989: wallet: fix crash on importdescriptors with a range ending at 2^31-1
f739c7876b81 Merge bitcoin/bitcoin#36450: test: Use timeout_factor for drain timeout in check_slow_read_throttle
8ad7e25d1fff Merge bitcoin/bitcoin#34374: kernel: use struct-based logging and simplify logging interface
fa486a484322 ci: Run valgrind --exclude tests again
442884f5f3bd Merge bitcoin/bitcoin#35037: ipc: support per-address max-connections options on -ipcbind
8406af1c0d69 Merge bitcoin/bitcoin#36436: ci: Derive CONTAINER_NAME from the ci config file name
6b93788355b3 Merge bitcoin/bitcoin#36471: bitcoin-util: print genesis hash in display order
f60450e98fc9 Merge bitcoin/bitcoin#36416: test: use ipaddress in addr_to_hex
cc8285e8c98a bitcoin-util: print genesis hash in display order
282a05b8d10e Merge bitcoin/bitcoin#36462: rpc: fix OpenRPC hex pattern to allow empty strings
4d7e00d36bf0 rpc: Fix OpenRPC hex pattern to allow empty strings
db0bde16b910 Merge bitcoin/bitcoin#36418: kernel: document that btck_WriteBytes may receive a null pointer
b497a71c6630 kernel: document that btck_WriteBytes may receive a null pointer
9dfde64cc326 Merge bitcoin/bitcoin#36447: test: Misc fixes for pending validation events races
35e3c9324e67 Merge bitcoin/bitcoin#36029: cmake: Detect and log MinGW-w64 version when cross-compiling for Windows
ff623cfa9beb Merge bitcoin/bitcoin#36392: test: Extract and use sigterm_node in init_fd_overflow_test
fa466dea808d test: Avoid pending validation events from TestChain100Setup
fa339713dbc5 test: Drain all validation events before stopping indexes
9523d2b4a185 Merge bitcoin/bitcoin#34844: util: Add util::NotNull<SmartPtrType>
fa845f76d5c6 test: Use timeout_factor for drain timeout in check_slow_read_throttle
14a328f75df8 Merge bitcoin/bitcoin#36338: BIP-352: fix P2PKH pubkey extraction from malleated scriptSig
5661a65c9fb4 Merge bitcoin/bitcoin#36432: wallet: show real fee_reason strings in help
672c2d213773 Merge bitcoin/bitcoin#36448: randomenv: use `KERN_POSIX1` over `KERN_OSREV`
6b8a5524f7e7 Merge bitcoin/bitcoin#36291: test: add script_tests cases covering interpreter mutants
14f89aeea6df Merge bitcoin/bitcoin#36340: util: cap Sock::WaitMany timeout to fix -rpcclienttimeout=0 on macOS
d1f9a5b3e050 randomenv: use KERN_POSIX1 over KERN_OSREV
0cd0789c86b3 test: use ipaddress in addr_to_hex
fa21ac647dc2 test: [move-only] wallet rescan tests to separate TU
fa2cdb6a3c18 ci: [refactor] remove redundant GOAL=install
fa547e8204cb ci: [refactor] Remove redundant set -o errexit
fa8fd9164fb4 ci: Derive CONTAINER_NAME from the ci config file name
93c8aec3fbc8 doc: add release note for #35989
aef8a04966d7 Merge bitcoin/bitcoin#36435: ci: isolate container test networks
3cb91bc7da67 Merge bitcoin/bitcoin#36308: test: Set tsan enable_adaptive_delay=1 by default
fa42e2868414 refactor: Return util::NotNull<std::unique_ptr<ChangeSet>> from CTxMemPool::GetChangeSet()
fa04fafb3aac refactor: In CNode use util::NotNull<std::unique_ptr<Transport>> m_transport
fae9ab0f0dc4 refactor: Use NotNull pointer to input fetching pool
fa0184afa2f9 refactor: Use util::NotNull<std::unique_ptr<LevelDBContext>> m_db_context
fafa44e020ab util: Add util::NotNull<SmartPtrType>
acaf322fc438 Merge bitcoin/bitcoin#36152: test: cover the feature-negotiation version boundary in p2p_leak
f55788e84552 Merge bitcoin/bitcoin#36277: net: always complete all initial private broadcast connections
cf80493e2367 Merge bitcoin/bitcoin#34729: Reduce log noise
2c992472842f Merge bitcoin/bitcoin#36303: http: Log bytes received from client, use to replace receive-throttle regression test
09e22fbbb0ca Merge bitcoin/bitcoin#35873: test: add a tx_valid vector for CVE-2024-38365
b47ec7c6e14e Merge bitcoin/bitcoin#35835: test: add CONST_SCRIPTCODE failure-path vectors to script_tests.json
889e7c5af841 Merge bitcoin/bitcoin#36329: psbt: add new test vectors
0036d5f1fa09 Merge bitcoin/bitcoin#36262: test: cover orphan reconsideration interruptibility
36e9e52f169c Merge bitcoin/bitcoin#34907: wallet, test: make wallet_fast_rescan robust
8c49a9abe919 Merge bitcoin/bitcoin#36151: makeseeds: fix off-by-one in field count check
b42ea675334c Merge bitcoin/bitcoin#36349: rpc: avoid copying unbroadcast transaction IDs just to count them
fa966fd76764 ci: Use one subnet per container
714261b508c2 Merge bitcoin/bitcoin#36426: test: check IBD insufficient work disconnect of outbound peers
fae564e66ab4 ci: Use one network per container and rm it after success
367119018dea Merge bitcoin/bitcoin#36320: test: refactor: make chain_dir consistent with CreateBaseChainParams
6e419391cf41 Merge bitcoin/bitcoin#32895: wallet: Prepare for future upgrades by recording versions of last client to open and decrypt
c7835db15a5b Merge bitcoin/bitcoin#36080: p2p: Suspend ping timeout while downloading blocks from a peer
b3f9d8e1ddf6 Merge bitcoin/bitcoin#36128: test: add script_tests cases covering more interpreter mutants
b6a1b0ff7079 Merge bitcoin/bitcoin#36327: test: speed up secp256k1 fixed-base multiplication and Schnorr signing
052cf121ab0a rpc: avoid copying unbroadcast txids to count them
781d8dbd500d wallet: show real fee_reason strings in help
66776840beb5 Merge bitcoin/bitcoin#36415: rpc: clarify preciousblock help text
c502b65c007b test: check IBD insufficient work disconnect of outbound peers
c8e852d3a02a Merge bitcoin/bitcoin#36404: fuzz: don't set random state for private broadcast test
dd809d2c08a3 Merge bitcoin/bitcoin#36299: cli: Improve empty-response and fix -rpcclienttimeout regression
802eb7daa9a8 Merge bitcoin/bitcoin#34213: net: preserve anchors when network is disabled
15d092639957 rpc: clarify preciousblock help text
65896ac58ea6 Merge bitcoin/bitcoin#36411: ci: drop `-Wno-error=maybe-uninitialized` from win64 cxx flags
eb086540b680 kernel: make logging struct-based and simplify configuration
0c327a34748a kernel: add KernelLogger
16bff77a5aaf test: cover orphan reconsideration interruptibility
3d976f464d5a kernel: remove API to format and disable logging
4ec80a5d4fa3 kernel: add log level and category name helpers to wrapper
2ce6cd3d906d kernel: expose btck_LogEntry
d83647e7c48a p2p: Don't apply ping timeout while downloading blocks
69142eacd137 Merge bitcoin/bitcoin#36383: util: remove unused exception parameter in `Popen::execute_process`
2b43c62d8ef5 p2p: move ping timeout check into SendMessages
8b5bbfe1fca1 test: add functional test for pings during IBD
a829aeaac1af Merge bitcoin/bitcoin#36412: ci: drop `-U_FORTIFY_SOURCE` from TSAN job
c57ef546c391 ci: use LLVM libc++ 23.1.2
f2a0e7392c6e ci: drop -U_FORTIFY_SOURCE from TSAN job
963f557a721b ci: drop -Wno-error=maybe-uninitialized from win64 flags
9f0595279521 Merge bitcoin/bitcoin#36052: ci: Doc: Move all config comments right next to the option they explain
1d19cca0761a fuzz: don't set random state for private broadcast test
00c1b52ee56b net: remove PrivateBroadcast::DidNodeConfirmReception
dc95a705d402 net: always complete all initial private broadcast connections
7988380da987 Merge bitcoin/bitcoin#36272: guix: split Linux toolchain
d4b0e1e4b078 Merge bitcoin/bitcoin#35833: log: prevent user input from injecting fake log lines
8dcf90a9b320 util: cap Sock::WaitMany timeout
fad49a733d61 test: Extract and use sigterm_node in init_fd_overflow_test
7b32155458cc wallet: Set last opened and decrypted features during migration
f998a740fc9f wallet: Record the supported features of the last client to decrypt a wallet
8453ad801b63 wallet: Introduce LastClientFeatures flags and LAST_OPENED_FEATURES record
4b612c6bf8cf Merge bitcoin/bitcoin#36391: test: fix typo in rpc_psbt
0a8ffe9051ab test: fix typo in rpc_psbt
cdfaa534d006 BIP-352: fix P2PKH pubkey extraction from malleated scriptSig
c35b99251450 test: characterize buggy BIP-352 P2PKH extraction on malleated scriptSig
856f9ea15805 doc: add ipcbind max-connections release note
bdd381b8ed47 ipc: test per-address connection limiting over unix sockets
8761d53b250e ipc: support per-address max-connections on ipcbind
c9d101ca7ab5 guix: split Linux toolchain
e0f16ef9a489 Merge bitcoin/bitcoin#36377: doc: add 461 (Deterministic ECDSA signatures with low-R grinding) to bips.md
cde2f2ec641a build: enable -Wunused-exception-parameter
1b00dff743da util: remove unused exception parameter in Popen::execute_process
e7aef7e86da7 Merge bitcoin/bitcoin#36375: wallet: accept uppercase addresses without amount in sendall
de8892f9db57 Merge bitcoin/bitcoin#36336: log: move CreateNewBlock() log line behind a new mining category
0198c8533457 Merge bitcoin/bitcoin#36365: fees: fall back to `block_policy` and minor api change
ba8fdb971779 Merge bitcoin/bitcoin#36381: test: avoid testing at the exact `-maxfeerate` boundary
a4bc96966faa test: refactor: make chain_dir consistent with CreateBaseChainParams
efe0dfcf1e5c test: cover DERSIG 9-byte signature lower bound
bbc4bdf9092e test: cover DERSIG null S byte only when S is multi-byte
fd2cf0450276 test: cover DERSIG null R byte only when R is multi-byte
a1deba78c5f6 test: cover DERSIG total-length byte check
3d04ed8ac77b test: cover DERSIG 73-byte signature upper bound
2c0f69a04789 test: cover STRICTENC rejects bad 33-byte pubkey prefix
df3008418c20 doc: add release notes
54b8795121d3 log: move CreateNewBlock() log line behind a new mining category
619185d5cefd Merge bitcoin/bitcoin#36233: guix: Update time-machine to `60f6956aeffa7f30285745bd0ea615e9acfc74f8`
3b9768a07aee Merge bitcoin/bitcoin#36275: build: enable `-Wunused-const-variable`
dc2a9987aab7 Merge bitcoin/bitcoin#36364: tools: Call SHA256AutoDetect in bitcoin-util, bitcoin-tx and bitcoin-wallet
025768fb37ce test: avoid testing at the exact `-maxfeerate` boundary
ced4c6e6ab47 Merge bitcoin/bitcoin#36321: net: cast vector size to avoid overflow, truncation, sign change
5b77288673e2 fees: clear mined-block stats when the mempool load fails
c0b7ca3dbdba fees: fall back to block_policy when the mempool estimator can't estimate
4056908f0fea fees: rename the default fee_rate_estimator value to "auto"
e7a18350967f Merge bitcoin/bitcoin#36235: ci: fail iwyu job on compiler errors instead of silently logging them
d57346d682f1 doc: add 461 (Deterministic ECDSA signatures with low-R grinding) to bips.md
df2994b14a4b wallet: accept uppercase addresses without amount in sendall
b6fc3cf0046d test: speed up secp256k1 fixed-base multiplication
05bc2f53ce0c Merge bitcoin/bitcoin#36024: ci: Make `test_bitcoin-qt.exe` output visible
4048909a5342 tools: Call SHA256AutoDetect in bitcoin-util, bitcoin-tx and bitcoin-wallet
d93d366e204e log: escape newlines in messages
960dcdb62529 test: characterize RPC and wallet input logs
feb77d838eda guix: Update time-machine to `60f6956aeffa7f30285745bd0ea615e9acfc74f8`
f14a3ef8c5c6 guix: Skip some packages' tests in `python-lief` and `nsis-x86_64`
493850c4c473 test: assert HTTP receive throttle from server-side log
ed7dd7cf4e15 Merge bitcoin/bitcoin#34371: wallet: allow importprunedfunds for spending transactions
f80aaf4bd7c6 Merge bitcoin/bitcoin#29278: Wallet:  Add `maxfeerate` wallet startup option
e19f83e944e9 Merge bitcoin/bitcoin#35984: sign: skip signing SIGHASH_SINGLE inputs with no corresponding output
ab8033566757 Merge bitcoin/bitcoin#36135: fuzz: test HTTPRequest state machine in http_request
65e075f89fdd Merge bitcoin/bitcoin#35696: i2p: update leaseset encryption types
d26f19c77c7b Merge bitcoin/bitcoin#35948: init: correct first-run disk space estimate
694eaad2eb28 kernel: add missing log levels and categories
90374132737e Merge bitcoin/bitcoin#36335: Remove my key from SECURITY.md
f6b19b190b2e Merge bitcoin/bitcoin#36322: init: fee estimates can lag behind the chain after restart
5820537e1b4b Remove my key from SECURITY.md
da03790dbb11 Merge bitcoin/bitcoin#36324: test: Fixup MAX_BODY_SIZE http throttling test
37969fc15211 Merge bitcoin/bitcoin#36312: net: don't discourage private broadcast peers
6fa2f3974cbb test: add BIP174 invalid value size vector
e8e7e91a1144 Merge bitcoin/bitcoin#36284: wallet: don't double discard output groups with avoidpartialspends
8c27c3852641 init: drain callbacks before saving fee estimates
08729e6ef9c9 test: characterize fee callback loss at shutdown
308cd670195d net: cast vector size to avoid overflow, truncation, sign change
bfdcd9797cd1 Merge bitcoin/bitcoin#35890: doc: use overwrite (>) instead of append (>>) for one-shot PSBT files in offline-signing-tutorial.md
de9f42c497df Merge bitcoin/bitcoin#36316: ci: use POSIX threads for Nix Windows builds
029bc15f2cb5 test: add BIP174 sighash combiner vector
fa2c62036b1d test: Fixup MAX_BODY_SIZE http throttling test
5c726f2058a4 Merge bitcoin/bitcoin#35675: mining: add block template manager
26241482e530 Merge bitcoin/bitcoin#35923: mempool: count unbroadcast txids in memory usage
a632d4f697f3 Merge bitcoin/bitcoin#35177: test: use MiniWallet for getblockstats test data generation
be5d0b5503fa Merge bitcoin/bitcoin#35301: Silent Payments: Implement bip352 (take 2)
b3f846ec3e5c Merge bitcoin/bitcoin#35440: wallet: check descriptor cache xpub length before decoding
dc3cd1969ed3 Merge bitcoin/bitcoin#35809: contrib: add deterministic fuzz coverage mode
81e2de897dbc Merge bitcoin/bitcoin#35893: test: cover submitpackage other-wtxid for same-txid-diff-witness
eab6630addc3 net: don't discourage private broadcast peers
31754523cd81 Merge bitcoin/bitcoin#36309: private broadcast: clarify claims, mark as experimental
9fd18aedb088 ci: print Windows cross compiler thread model
1d59d5ad2550 ci: use POSIX threads in Nix Windows cross shell
e3ee0ebd89e9 tests: add BIP352 test vectors as unit tests
f133d1373af6 common: add bip352.{h,cpp} secp256k1 module
96d487c11e8f ci: raise BuildKit step log limit
44997c391afc Add "sp" HRP
356c91f6ae51 crypto: add KeyPair::GetSecpKeypair
fa90a8a01318 ci: [refactor] Use eval-based string-to-argv conversion for FUZZ_TESTS_ARGS
0f104733cc8e walletdb: Decouple last client record from CLIENT_VERSION
2b95b45a9abd Merge bitcoin/bitcoin#35813: wallet, rpc: Add listrawtransactions RPC
71c30b608382 Merge bitcoin/bitcoin#27052: test: rpc: add last block announcement time to getpeerinfo result
d36f4a1788da Merge bitcoin/bitcoin#36155: doc: remove json quoting from gettxoutsetinfo and getblockstats cli examples
b7211ba80cde Merge bitcoin/bitcoin#34717: p2p: remove m_getaddr_sent
7ee3d622e5fa Merge bitcoin/bitcoin#35752: wallet: make encryption state updates atomic
f41372998377 private broadcast: mark feature as experimental
2630d8e6c9d6 doc: scope claims about private broadcast feature
248ce46faf70 Merge bitcoin/bitcoin#35619: test:  ExtendedPrivateKey follow-ups
995da8678a02 Merge bitcoin/bitcoin#36302: ci: simplify macOS codesign check
db7ec4fb9762 refactor: (de)serialize CExtKey/CExtPubKey through streams
cb69853fc160 wallet: check descriptor cache xpub length before decoding
f86cbf53eb3e Merge bitcoin/bitcoin#36310: rpc: clarify that `getaddrmaninfo` counts unique addresses
bbc40ede1ba6 Merge bitcoin/bitcoin#36261: test: cover PSBT unknown field merging
cf57dc281e8f build: add -Wunused-const-variable
b45a7084d809 refactor: use inline constexpr
f839ee1afb0f Merge bitcoin/bitcoin#35887: ipc: use std::optional for checkSpawned(), add tests and rename arg -ipcfd to -ipcchild
dac53c585b6a Merge bitcoin/bitcoin#31888: contrib: Support re-writing linearize-data dumps
0d34b6e9287f rpc: clarify that getaddrmaninfo counts unique addresses
4ecbc82d412f Merge bitcoin/bitcoin#36278: Update minisketch subtree to latest master
622817f097d6 ci, iwyu: fail job on compiler errors instead of ignoring them
5ca3773414df Merge bitcoin/bitcoin#36298: Update crc32c subtree to latest master
fa18f9aeac8e ci: Doc: Move all config comments right next to the option they explain
fa0e84ec53fc ci: refactor: Use printf %q quoting for BITCOIN_CONFIG
5945cb83ddcf contrib: add deterministic fuzz coverage mode
fa0d826eac33 test: Use sanitizer env in functional tests by default
fafce3be39a2 test: Set tsan enable_adaptive_delay=1 by default
faf907fd1391 test: Add with_sanitizer_env.py
fad2fc5a0f02 doc: Remove section on how to install libasan etc
716e8605e5c8 ci: simplify macOS codesign check
767d86aaa780 http: log received bytes per client read
457c9e8999fb script: avoid overflow when checking descriptor range bounds
ab3bb55a67cc test: add coverage for descriptor range end bounds
867ad9bffbd3 wallet: fix integer overflow in descriptor keypool top up
1889440f821d wallet: reject unrepresentable descriptor import ranges
2c8372db1131 Update crc32c subtree to latest master
5181c61d734f Squashed 'src/crc32c/' changes from efb8ea04e4..60bcf13edf
7c311f5c6c3e doc: Add release notes for listrawtransactions
b377786df14e test: Add functional test for listrawtransactions
605c4fd3aee0 wallet, rpc: Add listrawtransactions RPC
ba6c179ba07c wallet, rpc: allow omitting parent_descs from TransactionDescriptionString
719324977a41 test: Check that ineligible output groups are discarded only once
6d2414542b86 wallet: reuse unlock and passphrase change errors
593554622e2c wallet: return passphrase errors with Expected
f949b3ba2ad7 wallet: publish descriptor keys after writes
e3712b7d492f test: characterize descriptor insertion failure
bd558107784c wallet: abort failed descriptor key erases
537e79191585 test: cover encrypted descriptor key insertion
d8a6f5e48d6b wallet: abort failed descriptor key writes
14ce3fdb493a test: characterize descriptor key failures
5bc0be16fe4d wallet: reject failed passphrase changes
ee6d45a07e3a test: characterize passphrase write failure
2daa2f94f4a2 wallet: restore lock state before re-encryption
8b23fa47737a wallet: abort failed encryption transactions
e6c374d30201 test: characterize encryption transaction failures
70381010c0af refactor/test: add wallet failure injection
dc3e2bc6df68 wallet, rpc: extract PushTxAmountAndFee/PushTxDecoded helpers
20307f0ac0e1 wallet: don't double count discarded output groups with avoidpartialspends
1805716354b4 cli: Apply -rpcclienttimeout per socket wait instead of per phase
b841ab694215 cli: Treat a response with Content-Length: 0 as complete
749bd10fdf01 Update minisketch subtree to latest master
fcb2d832b2d9 Squashed 'src/minisketch/' changes from 4a179c61e3..a12f5de1c9
21e4ea8134d8 test: cover PSBT unknown field merging
f69e56bc1c43 [doc]: add release notes
40ab7aa90de5 [wallet]: warn when `-maxtxfee` conflicts with `-minrelaytxfee`
df1feeb487dc [wallet]: enforce `-maxfeerate` on wallet transactions
d2c832e9e79d [util]: add a new transaction error type
633c08d3f7af [node]: update `BroadcastTransaction` to check fee rate limit
7bfce65801bf [wallet]: add `maxfeerate` wallet startup option
607568f2b002 [wallet]: update `max_fee` to `max_tx_fee`
6b913b6224bd doc: add missing verb to make sentence readable
a9c39696f4be scripted-diff: rename `m_default_max_tx_fee` to `m_max_tx_fee`
8df006f23383 wallet: skip signing SIGHASH_SINGLE inputs with no corresponding output
3d7d190b6995 ci: enforce iwyu for block template manager
ffe3a631f38b node: remove NodeContext::mining and EnsureMining
6c71166bcfa4 test: create templates via BlockTemplateManager
ec4f24ef181a rpc: wait for tips via BlockTemplateManager
8372721f20e2 rpc: build generation templates via BlockTemplateManager
38556f817e06 rpc: only copy the header in getblocktemplate
951fac807d37 rpc: do not copy template data in getblocktemplate
0998c0bbdfcc rpc: build getblocktemplate via BlockTemplateManager
011cbfbcd2e3 rpc: route getblocktemplate internals through node
400ac328c91b interfaces: create block template via BlockTemplateManager
037d3519f2ff node: move tip and wait helpers into BlockTemplateManager
07964c525d47 miner: move SubmitBlock into BlockTemplateManager
bcdadf2b7111 node: move mining_args to BlockTemplateManager
482a5d27124c node: introduce BlockTemplateManager
3d2b65d05096 ipc: add default connection limit for ipcbind listeners
ddf033054ff6 test: cover anchor handling across network toggles with mocktime
b0bff47d4432 net: log that anchors will be tried for connections only if network is active
4b6b85428586 test: disabling network activity should not affect anchors
04d3d474c48d net: preserve anchors on shutdown when network is inactive
41771236b4d9 net: store anchors in SetNetworkActive
e5f3ea3bf6f6 net: guard m_anchors with mutex
2fabbc0bb38d test: check SENDTXRCNCL is sent at version 70016
36775471f81a test: cover the feature-negotiation version boundary in p2p_leak
c786052865fd makeseeds: fix off-by-one in field count check
fca8fef8f903 fuzz: assert HTTP framing is independent of stream segmentation
c368de3eec9c fuzz: exercise the HTTPRequest state machine
57a79c69627d doc: remove json quoting from gettxoutsetinfo and getblockstats cli examples
a34861d280b3 test: unify how to avoid the creation of the default wallet in nodes
3458837a0b76 test: use ExtendedPrivateKey in wallet_importdescriptors.py
d23b53e0cfbc fuzz: allow http_request inputs to reach MAX_HEADERS_SIZE
56af5e072a0d fuzz: extract http_request parse and framing check into helpers
44a7083d4360 test: cover MAX_OPS_PER_SCRIPT in P2WSH witness scripts
f1380123b6f8 test: cover P2WSH trailing byte mismatch
4e7de2ac4cc6 test: cover TAPSCRIPT_MINIMALIF for OP_IF and OP_NOTIF with 1-byte vector 0x00
09cdb3c48872 cmake: Detect and log MinGW-w64 version when cross-compiling for Windows
70701de7c555 ci: Make `test_bitcoin-qt.exe` output visible
05e7d5731840 ipc, test: add checkSpawned() unit tests
42215b85811a init: correct first-run disk space estimate
91f8b365e7e7 validation: Upgrade log levels for possible block corruption warnings
788242d6d009 txindex: Downgrade log messages and include index name
93b9613b764a kernel/coinstats: Downgrade ComputeUTXOStats log level
3c4336631e3d script: Lower level of oversized redeemScript log, push errors to callers
7902a8ee83fc netbase: Tidy up logging levels
4f42b76ca76b netbase: Reduce levels of socks5 error logging
ec627b3f3b82 util/log: Add LogWarnThenDebug() helper
9054f7cde43a test: cover submitpackage other-wtxid for same-txid-diff-witness
c2da52d3660f wallet: allow importprunedfunds for spending transactions
db21e03c9d50 mempool: include unbroadcast txid memory
8d5c4a9290b0 test: characterize unbroadcast memory accounting
be30864ed1a6 doc: use overwrite (>) instead of append (>>) for one-shot PSBT files in offline-signing-tutorial.md
8bca7555f832 ipc, refactor: rename arg -ipcfd to -ipcchild
bd3a38f10ab7 ipc, refactor: return std::optional<mp::SocketId> from checkSpawned()
6cd2fa5fb4b6 test: add a tx_valid vector for CVE-2024-38365
829e44a1151f test: add CONST_SCRIPTCODE failure-path vectors to script_tests.json
13ce46ba1a79 doc: add release note for 27052
5d5397d84108 test: add functional test for block announcement time tracking
7d3d04e925c7 rpc: add last_block_announcement to the getpeerinfo output
26a25162a48a net: add m_last_block_announcement to CNodeStateStats
bb8bca630a8a change m_last_block_announcement type from int64_t to NodeClock::time_point
412540e18d87 i2p: update leaseset encryption types
f217da5c59f4 wallet, test: wallet_fast_rescan follow-ups
b7cbd804284b test: use MiniWallet for getblockstats test data generation
c8ee319fffa1 net: remove m_getaddr_sent
a1ecda260996 test: delete redundant addr relay assertion
e9dc16194b47 correct the linearize-data script (minor)

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