Repository navigation
p2p: Don't participate in addr relay with feelers - #34997
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34997. ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste |
|
Concept ACK, bitcoin/src/net_processing.cpp Line 4823 in a7c30da So the bitcoin client will not respond to any GETADDR message from a feeler connection or outbound connections |
|
Thanks @taki-abedesselam!
I don't think this is going to work:
|
|
I guess if we have 8 outbounds sustained (and are not already eclipsed), then we likely get fairly good addr information constantly, and if we don't have 8 outbounds, we'll keep making new outbound connections, send a GETADDR to them, and get back 1000 new addressed, so one way or the other will get good coverage. So I guess we don't need to put in any extra effort to get better address coverage, in the same way that we put in extra-effort via extra-block-relay-only peers to ensure we don't miss out on any higher-PoW blocks. Getting addresses from I find Concept ACK. |
| bool send_getaddr{false}; | ||
| if (!pfrom.IsInboundConn()) { | ||
| if (!pfrom.IsInboundConn() && !pfrom.IsFeelerConn()) { | ||
| send_getaddr = SetupAddressRelay(pfrom, peer); |
There was a problem hiding this comment.
We drop out of SetupAddressRelay for blocks-only nodes rather than gating calls to it. Maybe we should do feelers there too?
|
I'm not very familiar with "feelers", although, wouldn't the quality of the data returned by feelers be better if we waited for the results of the GETADDR message instead of the current behavior of disconnecting before receiving the result? |
mzumsande
left a comment
There was a problem hiding this comment.
Concept ACK
This saves a little bit of bandwidth (not just our GETADDR message, but also their ADDR answer that the peer might prepare before they recognize they are being disconnected) but shouldn't change anything else.
I'm not very familiar with "feelers", although, wouldn't the quality of the data returned by feelers be better if we waited for the results of the GETADDR message
They wouldn't really be feeler anymore then. The current scope of feelers is just to know if there is a bitcoin node behind an address, not to get data from them. We could extend the scope in various ways (it has already been suggested in the past to exchange headers/compare the tip with them before disconnecting), but this should follow some sort of need. I agree with @ajtowns that currently there doesn't really seem to be a need for more addresses - if we extend the scope I think that the tip sync may be more important).
04718e1 to
aaf6cdd
Compare
|
Thanks for the reviews! I spent some time thinking about https://github.com/bitcoin/bitcoin/pull/34997/changes#r3039010154, and I realized that it makes more sense to disable address relay altogether, instead of simply not sending the getaddr.
So, since not sending a GETADDR already disables address relay altogether, I might as well be a bit more clear and do so in In my last push (04718e1d984d7722c8e74e41156aa93ec18be83d -> d263660b9ba516e9145da9cbadff262fe26fc2b5):
|
aaf6cdd to
d263660
Compare
d263660 to
3934d95
Compare
|
Sorry, had to push again to retrigger CI, I hit #34849 Last push (d263660 -> 3934d95): no changes, commit amend to retrigger CI |
naiyoma
left a comment
There was a problem hiding this comment.
Concept ACK
It's pointless to allow Feeler connections to participate in addr relay.
I've been able to observe what you've shared above
. We send getaddr, and then disconnection happens quickly before we get a response.
2026-04-13T20:30:54Z [net] Added connection to 69.36.61.139:8333 peer=70
2026-04-13T20:30:55Z [net] start sending v2 handshake to peer=70
2026-04-13T20:30:56Z [net] sending version (103 bytes) peer=70
2026-04-13T20:30:56Z [net] send version message: version=70016, blocks=713357, them=69.36.61.139:8333, txrelay=0, peer=70
2026-04-13T20:31:00Z [net] received: version (102 bytes) peer=70
2026-04-13T20:31:00Z [net] receive version message: /Satoshi:27.0.0/: version 70016, blocks=944938, us=129.222.147.237:21739, txrelay=1, peer=70 peeraddr=69.36.61.139:8333
2026-04-13T20:31:00Z [net] sending wtxidrelay (0 bytes) peer=70
2026-04-13T20:31:00Z [net] sending sendaddrv2 (0 bytes) peer=70
2026-04-13T20:31:00Z [net] sending verack (0 bytes) peer=70
2026-04-13T20:31:00Z [net] sending getaddr (0 bytes) peer=70
2026-04-13T20:31:00Z [net] feeler connection completed, disconnecting peer=70 peeraddr=69.36.61.139:8333
| @@ -113,6 +113,8 @@ def run_test(self): | |||
| assert_equal(feeler_conn.message_count["version"], 1) | |||
| # Feeler connections do not request tx relay | |||
| assert_equal(feeler_conn.last_message["version"].relay, 0) | |||
| # We don't send a GETADDR to feelers | |||
| assert_equal(feeler_conn.message_count["getaddr"], 0) | |||
There was a problem hiding this comment.
I think it's better to add this test to p2p_addr_relay.py
https://github.com/bitcoin/bitcoin/blob/master/test/functional/p2p_addr_relay.py#L283
fits with this existing test case -> Check that we do not send a getaddr message to a block-relay-only or inbound peer
There was a problem hiding this comment.
~0. Looks better to add this to p2p_addr_relay.py but it would require to create a new connection, and probably move P2PFeelerReceiver to util to not duplicate code. Since we already have a feeler connection in p2p_add_connections, just adding one more assertion looks simpler.
There was a problem hiding this comment.
I ended up taking this - I think it's a bit cleaner, and serves as documentation for how getaddr works.
I implemented it using AddrReceiver instead of reusing P2PFeelerReceiver, since the latter is only an optimization to avoid sending useless messages into a closing connection: P2PFeelerReceiver only sends a version message upon receiving a version message, while the AddrReceiver also sends wtxidrelay, sendaddrv2 - all of which go into a dead socket, since bitcoind closes the feeler connection as soon as version is received.
So, using AddrReceiver is slightly less clean, but harmless otherwise.
Yeah, I think this is a feeler What I find interesting about this is that we are sending an addr message after the socket has been closed. |
brunoerg
left a comment
There was a problem hiding this comment.
ACK 3934d954082c7f467ed24371b20f4875743bc324
Avoiding feelers on addr relay makes total sense. Code lgtm since now it's skipping feelers on SetupAddressRelay. I'm fine on testing it on p2p_add_connections.py (for reference: https://github.com/bitcoin/bitcoin/pull/34997/changes#r3075804504) and verified this is enough to catch the following mutant:
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index c7005ddaec..1b7cac8375 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -5616,7 +5616,7 @@ bool PeerManagerImpl::SetupAddressRelay(const CNode& node, Peer& peer)
// they are short-lived connections made for test-before-evict or to
// promote addresses from addrman's new table to the tried table, and
// are disconnected shortly after the handshake completes.
- if (node.IsFeelerConn()) return false;
+ if (node.IsFeelerConn()) return true;
if (!peer.m_addr_relay_enabled.exchange(true)) {
// During version message processing (non-block-relay-only outbound peers)3934d95 to
5bb1a9b
Compare
|
In my last push (3934d95 -> 5bb1a9bc464f8b958cdbc40ae6b0a98a8b0397e4):
Sorry for invalidating your ACK @brunoerg! |
|
reACK 5bb1a9bc464f8b958cdbc40ae6b0a98a8b0397e4 checked the functional test change since my last review. |
andrewtoth
left a comment
There was a problem hiding this comment.
ACK 5bb1a9bc464f8b958cdbc40ae6b0a98a8b0397e4
Makes sense to skip addr relay for feelers since we don't even wait for the response.
vasild
left a comment
There was a problem hiding this comment.
ACK 5bb1a9bc464f8b958cdbc40ae6b0a98a8b0397e4
| @@ -3750,7 +3748,7 @@ void PeerManagerImpl::ProcessMessage(Peer& peer, CNode& pfrom, const std::string | |||
|
|
|||
| // 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 | |||
There was a problem hiding this comment.
In the commit message:
the addresses from feelers are likely low quality, given that they come from addresses we're not even sure are running a Bitcoin node.
Hmm? I think the quality of addresses is all the same from all nodes we talk to (unless we walk to a "trusted" node that we control).
There was a problem hiding this comment.
I initially took the reasoning from #34997 (comment), but re-reading my commit message, I'm a bit confused too 😅 Sorry about that.
In my understanding, feeler connections are made to:
- addresses already in the tried table (we connected to them at least once), but which may get evicted due to collisions, and so we want to check if they're still alive.
- in absence of collisions, addresses from the new table, which are the "addresses we're not even sure are running a Bitcoin node"
However, once we have connected to 2., we are sure they are running a Bitcoin node :) So I don't really see why their addresses might be lower quality.
@ajtowns can you clarify the point you made earlier?
There was a problem hiding this comment.
(not related to this address quality thread)
However, once we have connected to 2., we are sure they are running a Bitcoin node
1 exception I've come across is a spy node cluster which can listen but doesn't run a node.
| @@ -5615,6 +5612,12 @@ bool PeerManagerImpl::SetupAddressRelay(const CNode& node, Peer& peer) | |||
| // information of addr traffic to infer the link. | |||
There was a problem hiding this comment.
There are some other messages that we might as well skip for feeler connections. Worth exploring for a followup.
|
Thanks for the review! I plan to update to fix the documentation and commit message once I have clarity around #34997 (comment), so I'll invalidate everyone's ACK soon - sorry! |
|
Concept ACK! |
1 similar comment
|
Concept ACK! |
|
@danielabrozzoni what is the status here? This hasn't received an update in a while. Are you still waiting for an answer to your question here: #34997 (comment) ? |
|
@sedited sorry for the delay! Yes, I was, but I can also push an update reshaping the commit message, so that it doesn't include that sentence anymore. Will do soon! :) |
Feeler connections are short-lived connections made to check that a node is alive, useful for test-before-evict from addrman, and for moving addresses from the new to the tried table. We currently send a GETADDR message to feelers, but then disconnect before being able to receive a response. This wastes some bandwidth, so we can avoid sending the GETADDR altogether. Not sending the initial GETADDR will effectively disable addr relay: we initialize addr relay for the peer when we send GETADDR, and the peer initializes addr relay to us when they receive it. So the peer will not relay any announcement to us, and we will not relay any to them either. This is ok, since the use of feelers is to test if there is a bitcoin node behind an address, not exchange addresses with them.
5bb1a9b to
b073533
Compare
|
In my last push (5bb1a9b -> b073533):
|
|
ACK b073533 I only looked at the code. Didn't do any manual testing of this. |
stratospher
left a comment
There was a problem hiding this comment.
ACK b073533. didn't see any addr message from feelers in my node's last 24 hours/it would disconnect before addr message is received. so consistent with today's behaviour.
| @@ -3750,7 +3748,7 @@ void PeerManagerImpl::ProcessMessage(Peer& peer, CNode& pfrom, const std::string | |||
|
|
|||
| // 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 | |||
There was a problem hiding this comment.
(not related to this address quality thread)
However, once we have connected to 2., we are sure they are running a Bitcoin node
1 exception I've come across is a spy node cluster which can listen but doesn't run a node.
|
ACK b073533 |
…05fc7ab 81405fc7ab Merge bitcoin/bitcoin#35689: test: Inline incorrect check in `util_tests` cd2a4bc510 test: Redeclare variable as signed in `util_tests` 6f1c56f03a Merge bitcoin/bitcoin#35670: net: optimize compact block extra tx iteration e94fda8a40 Merge bitcoin/bitcoin#35685: doc: Archive 30.3 release notes 5223cf1795 Merge bitcoin/bitcoin#35616: refactor: Use u64 over size_t for all cache sizes to fix a 32-bit overflow c0e91efdb3 Merge bitcoin/bitcoin#35295: validation: fetch block input prevouts in parallel during ConnectBlock f0da26cfc8 Merge bitcoin/bitcoin#34997: p2p: Don't participate in addr relay with feelers 443179a9eb doc: Archive 30.3 release notes fabafd91f1 refactor: Use u64 over size_t for all cache sizes to fix a 32-bit overflow 32941e1314 Merge bitcoin/bitcoin#35649: depends: move FreeBSD SDK handling to CI f379d716b1 Merge bitcoin/bitcoin#35669: doc: archive release notes for v31.1 881bb7b355 Merge bitcoin/bitcoin#35673: refactor: Move LoadGenesisBlock to ChainstateManager 3f3e644beb Merge bitcoin/bitcoin#35678: private broadcast: define and use new RPC_LIMIT_EXCEEDED error code ( + other follow-ups) e3b026bf56 Merge bitcoin/bitcoin#34020: mining: add getTransactions(ByWitnessID) IPC methods 62f9089343 Merge bitcoin/bitcoin#35386: doc: add an AI contribution policy fa615bd163 refactor: Move LoadGenesisBlock to ChainstateManager 8ac222484c private broadcast: remove no-op [[nodiscard]] 191bdcba26 test: align test better with described scenario 7ad311be18 test: use BOOST_CHECK_EQUAL for PrivateBroadcast::AddResult 82a02a2a22 rpc: define and use new RPC_LIMIT_EXCEEDED error code a64df338e6 Merge bitcoin/bitcoin#35651: doc: Improve offline-signing-tutorial after 32489 4498fa5d5b Merge bitcoin/bitcoin#35406: private broadcast: limit outstanding txs to count of 10,000 ec5edcd72b Merge bitcoin/bitcoin#35661: Update libmultiprocess subtree to add `ThreadMap.makePool` method ea67fea062 Merge bitcoin/bitcoin#35464: kernel: Add function for creating chainparams with a signet challenge a7b5f23bb8 Merge bitcoin/bitcoin#35667: refactor: Use `NetworkErrorString` for macOS code in `netif.cpp` 69fc991791 Merge bitcoin/bitcoin#32606: p2p: Drop unsolicited CMPCTBLOCK from non-HB peer and when blocksonly 1a3cbf1bd2 net: optimize compact block extra tx iteration bc33509ae2 Merge bitcoin/bitcoin#35650: doc: Add release notes for 32489 (exportwatchonlywallet RPC) 2b6e767d96 doc: archive release notes for v31.1 b0735336ee p2p: Don't participate in addr relay with feeler connections 302733fd96 Merge bitcoin/bitcoin#35652: init: fix reindex deadlock by waking cv after interrupt c1313b199f init: wake genesis wait after ImportBlocks() returns eccb04a321 refactor: Use `NetworkErrorString` for macOS code in `netif.cpp` f79ecfd9c7 Merge bitcoin/bitcoin#35658: refactor: Drop unneeded `<sys/types.h>` include before `<ifaddrs.h>` 22ac4ad949 ci: ensure we use correct lld version in OpenBSD job 495f43f7b3 ci: FreeBSD 15.1 244739db9d depends: move FreeBSD SDK handling to CI bab0120053 Merge bitcoin/bitcoin#35621: validation: Ignore eventual error message from flushing in AcceptBlock 02afa66169 Merge commit '6b0a907302364649dcaffeb0340b985f14141b4e' into pr/subtree-11 6b0a907302 Squashed 'src/ipc/libmultiprocess/' changes from 3edbe8f67c1..16bf05dea02 22c328d388 refactor: Drop unneeded `<sys/types.h>` include before `<ifaddrs.h>` 2063f02bd5 Merge bitcoin/bitcoin#35510: test: SOCKS5 proxy: expect that connection may be reset during SOCKS5 handshake or data forwarding 1360001f43 Merge bitcoin/bitcoin#34959: wallet: Enforce BDB btree levels and overflow item sizes 10ffef4b3b Merge bitcoin/bitcoin#35604: log: expose `-logratelimit` in normal help b393985aa0 Merge bitcoin/bitcoin#35634: txospenderindex: use zero-byte entry values 1835f2fcbf Merge bitcoin/bitcoin#35653: fuzz: Remove `ConsumeUniValue` 9f3e427228 fuzz: Remove ConsumeUniValue 68cb7840d2 doc: improve offline-signing-tutorial after 32489 32ddfc92d9 Merge bitcoin/bitcoin#35599: doc: Add release notes for #33671 (getbalances nonmempool field) f56804bcf5 Merge bitcoin/bitcoin#35640: ci: use a 8x instance over 16x for riscv job 239d6c5260 Merge bitcoin/bitcoin#35614: HTTPServer: Prevent race condition between worker thread and I/O thread cddbad325d doc: Add release notes for 32489 (exportwatchonlywallet RPC) 0a1bbec688 Merge bitcoin/bitcoin#32489: wallet: Add `exportwatchonlywallet` RPC to export a watchonly version of a wallet 4a007126fb Merge bitcoin/bitcoin#35147: depends: Boost 1.91.0-1 31abaa264c doc: add an AI contribution policy a15bdc0598 doc: update offline-signing-tutorial to use exportwatchonlywallet rpc a388076401 test: Test for exportwatchonlywallet d053e3e5c8 wallet, rpc: Add exportwatchonlywallet RPC 444878efef wallet: Add CWallet::ExportWatchOnly f9273f01db wallet: Move listdescriptors retrieving from RPC to CWallet a1c83789a7 wallet: Write new descriptor's cache in AddWalletDescriptor 1e996640e6 wallet: Use Descriptor::CanSelfExpand() in CanGetAddresses() d2ee9227da descriptor: Add CanSelfExpand() 2990bd7735 Merge bitcoin/bitcoin#35118: fuzz: add ipc round-trip fuzz target fb1d152c24 depends: Boost 1.91.0-1 ba48852f9e Merge bitcoin/bitcoin#35438: test: introduce NodeSigner, run feature_taproot.py without wallet compiled 47bbed052e ci: use true|false over "true|false" 9a25bc3989 ci: use a 8x instance over 16x 9871dc7ab4 Merge bitcoin/bitcoin#31425: CI: Add Riscv bare metal job 113402286e doc: add txospenderindex release note ce06878288 index: shrink txospenderindex value markers a99148d576 test kernel: Don't log on warnings change 5b4fd284f4 kernel: Generate a signet with a challenge 037ad77071 fuzz: add IPC round-trip target a8823c0996 Merge bitcoin/bitcoin#35607: nanobench: fix performance counter buffer initialization f26c15bdd2 Merge bitcoin/bitcoin#35397: ci: add OpenBSD Clang cross job 91586f701e test: introduce NodeSigner, run feature_taproot.py without wallet compiled 771200ca43 test: return full keypair from `getnewdestination` helper 4e29de719e private broadcast: add release note for limited cap cbf8c107c1 Release cs_main between individual private tx re-attempts 5aea3d0373 private broadcast: limit outstanding txs to count of 10,000 dc282ff31d Merge bitcoin/bitcoin#35597: logging: More fully remove libevent log category ec98037f7a Merge bitcoin/bitcoin#35615: fuzz: restore CreateSock in PCP targets 43d89bb6e1 Merge bitcoin/bitcoin#35610: bitcoin-util: Add netmagic command e35c805489 Merge bitcoin/bitcoin#35129: test: add fuzz test for private broadcast dc1c17c085 doc: add release notes 0e10937184 fuzz: add coins_view_stacked fuzz harness to test concurrent leveldb reads ce610a6ff4 fuzz: update harnesses to cover CoinsViewOverlay::StartFetching 760fb22dc3 test: add unit tests for CoinsViewOverlay::StartFetching d69a3b20de doc: update CoinsViewOverlay docstring to describe parallel fetching ab2a379237 coins: fetch inputs in parallel fdf283036a coins: add ready flag to InputToFetch ede11b8314 validation: collect block inputs in CoinsViewOverlay before ConnectBlock f82043af50 coins: introduce thread pool in CoinsViewOverlay 5bf1c32008 validation: add -prevoutfetchthreads configuration option a318f43254 bitcoin-util: Add netmagic command 256482ab56 validation: In AcceptBlock, ignore flush result 3c76bd4356 Merge bitcoin/bitcoin#35603: build: QRencode cleanups f595daf1dd test: ensure HTTPServer race condition is fixed b98b10c072 test: introduce a worker thread in http socket error test 922b08d375 test: socket error handling in HTTPServer using ErrorSock mock socket 73da2a8a52 http: prevent race condition between worker thread and I/O thread 57b3bf8496 Merge bitcoin/bitcoin#35609: ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE d64ea15824 ci: add openBSD cross CI job 5404b62074 depends: add openbsd_LDFLAGS 2a9e35d293 Merge bitcoin/bitcoin#35588: scripted-diff: Rename `Sock::{RECV,SEND,ERR}` a0e5e30010 fuzz: restore CreateSock in PCP targets 41ceea400e scripted-diff: Rename `StatusLevel::{INFO,WARN,ERR}` f395acdeee scripted-diff: Rename `Sock::{RECV,SEND,ERR}` 7a74f65293 Merge bitcoin/bitcoin#35536: fuzz: share a single mocked steady clock across FuzzedSock instances e1290ce7f7 Merge bitcoin/bitcoin#35543: test: introduce ExtendedPrivateKey and ExtendedPublicKey classes 7ac25c9177 util, refactor: Rename local `ERR` in `Sock::Accept` bbbbab86a8 ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE 095596ddf7 log: expose -logratelimit option ea9afb61a1 Merge bitcoin/bitcoin#35602: doc: Clarify build docs about `pkgconf` / `pkg-config` requirements 672eedc46b Merge bitcoin/bitcoin#35220: fuzz: connman: strengthen assertions and extend coverage 0e5c718d8a Merge bitcoin/bitcoin#35506: test: ensure group data cluster pointers are live b6b1d0653a nanobench: fix perf counter buffer init 93012d7ff9 Merge bitcoin/bitcoin#35601: wallet: remove experimental warning from send and sendall 829255c8be cmake: Remove `SelectLibraryConfigurations` from `FindQRencode` module 5c55606da9 depends: Remove unused `lib/pkgconfig` in `qrencode` package 402ba10b20 cmake: Drop optional `PkgConfig` use in `FindQRencode` module 8ebfff0f88 doc: add send RPC release note fb8a103886 doc: Clarify build docs about `pkgconf` / `pkg-config` requirements 5884f5a4fa wallet: remove experimental warning from send RPCs 7b84e5106c Merge bitcoin/bitcoin#35595: ci: remove some packages from Chimera job 58560c281d ci: remove some packages from Chimera job 295ce6f45c Merge bitcoin/bitcoin#35576: test: raise `feature_reindex` RPC timeout b36730a3ef Add CI job for riscv bare metal bfdbf513f6 Add CI job for producing a static bare metal binary a9a1d92a1d build: Add option for building for bare metal envs 9b2ef81757 doc: add release notes for #33671 (getbalances nonmempool field) 633044f143 Merge bitcoin/bitcoin#35266: rpc, wallet: add an option to not load the wallet after migrating d6269e2a90 Merge bitcoin/bitcoin#35594: fuzz: cover async chainstate compaction 3765b428d1 logging: More fully remove libevent log category 703a671fbc fuzz: compact coins view db during fuzzing 0868c85fd5 refactor: rename async coin compaction 6fa4132298 fuzz: share a single mocked steady clock across FuzzedSock instances 8791c4764c test: use ExtendedPrivateKey in wallet_taproot.py 89ceafafb9 test: use ExtendedPrivateKey in wallet_listdescriptors.py bbfffcab58 test: use ExtendedPrivateKey in wallet_send.py 2ab6e590f7 test: use ExtendedPrivateKey in wallet_keypool.py 9e20118720 test: use ExtendedPrivateKey in wallet_fundrawtransaction.py 06af0cddbb test: use ExtendedPrivateKey in wallet_descriptor.py 4100fac20e test: use ExtendedPrivateKey in wallet_createwallet.py ff3f6def9a test: use ExtendedPrivateKey in wallet_bumpfee.py 003f2a01f6 test: use ExtendedPrivateKey in feature_notifications.py f988e6d6e6 test: use ExtendedPrivateKey in wallet_importdescriptors.py 0cdd817a82 add release note 517d37ce3e test: tests wallet migration with load_wallet disabled b98dd63da7 rpc: Add load_wallet argument to migratewallet RPC 4acd063ba6 wallet: make loading the wallet after migrating optional 1a3cfdf1b7 fuzz: connman: cover AddLocalServices/RemoveLocalServices c507fb3063 fuzz: connman: add outbound-bytes invariants 4a6fce43ea fuzz: connman: add AddNode/RemoveAddedNode invariants 9e6546c517 test: raise reindex mining RPC timeout d2a03d50ac test: add extendedkey.py unit tests by using BIP32 test vectors afdb378082 test: introduce ExtendedPrivateKey and ExtendedPublicKey classes 55e3a57f22 qa: Avoid UTXO reuse between test functions 9c5dd2926a p2p: Ignore CMPCTBLOCK from peer that hasn't sent SENDCMPCT bf9884f4e5 p2p: make blocksonly nodes ignore CMPCTBLOCK messages 92cea63c71 test: (Un)solicited invalid cb -> get disconnected. e845e26344 test: p2p: Nodes ignore unsolicited CMPCTBLOCK's 8313591715 p2p: Drop unsolicited CMPCTBLOCK from non-HB peer 44f377a71f refactor: test: Static assert_highbandwidth_states 25457a3272 test: Tighten getblocktxn checks in parallel cb reconstruction test. 2ee4fafa3f test: add fuzz test for private broadcast 08b7c61fc7 private broadcast: enforce sending to unique node ids 9a8ef9b0a3 test: SOCKS5 proxy: expect that connection may be reset during handshake eb3208364a test: SOCKS5 proxy: expect that connection may be reset when forwarding 4dbaa7cc65 test: generalise byte_to_base58 utility function to allow more version types df9eb72b12 test: ensure group data cluster pointers are live a5859edef4 fuzz: connman: set m_local_services/m_use_addrman_outgoing/m_max_automatic_connections 4b84c9125a fuzz: connman: add network activity invariants 9784818442 mining: add getTransactionsByWitnessID() IPC method d282ae6883 mining: add getTransactionsByTxID() IPC method 0d5e4d4712 test: restart node after IPC option override test f16b3613cd ipc: Serialize null CTransactionRef as empty Data 0f466e1094 mempool: add lookup by witness hash 51dd90fb50 refactor: Merge announce_cmpct_block() defs into one 97d08d62ba refactor: store wallet names to MigrationResult 8a739a5510 build: allow ipc fuzz builds b2de59d486 wallet, bdbro: Validate btree page levels dc3a2b9c3b wallet, bdbro: Enforce overflow data lengths git-subtree-dir: libbitcoinkernel-sys/bitcoin git-subtree-split: 81405fc7abbd1889f3978b8924e7acbe12b3403b
…h feelers 82265b9 p2p: Don't participate in addr relay with feeler connections (Daniela Brozzoni) Pull request description: Feeler connections are short-lived connection made to check that a node is alive, useful for test-before-evict, and for moving addresses from the new to the tried table. We currently send a GETADDR message to feelers, but then disconnect before being able to receive a response. This GETADDR is not useful and can be removed. I couldn't find any previous discussion about this, but I found PR #22777, that similarly made sure that we don't ask for tx relay to feelers. --- I noticed this behavior on my peer-observer instance: I would see the number of sent GETADDR messages increase over time, but the number of ADDR messages with >100 addresses received (which are likely GETADDR responses and not self announcements relays) wouldn't increase as much. I later realized that it was my node opening feeler connections, sending a GETADDR, and closing the connection. You can see the same behavior using this command - the node is making feeler connections, sending getaddr to them, closing before receiving the addr response: ``` ~ ₿ tail -f ~/.bitcoin/debug.log | grep -E "(Making feeler connection|Added connection to|sending getaddr|feeler connection completed|Received addr: [0-9]{2,} addresses)" 2026-04-02T13:25:50Z [net] Making feeler connection to xyz.onion:8333 2026-04-02T13:26:06Z [net] Added connection to xyz.onion:8333 peer=27 2026-04-02T13:26:08Z [net] sending getaddr (0 bytes) peer=27 2026-04-02T13:26:08Z [net] feeler connection completed, disconnecting peer=27, peeraddr=xyz.onion:8333 ``` On a node that accepts inbounds connections, this command can be used to see in the logs all the nodes that connected, sent a getaddr, and disconnected before receiving a reply. It is possible that these nodes connected to us as a feeler: ``` ~ ₿ cat .bitcoin/debug.log | awk ' /received: getaddr/ { split($0, a, "peer=") got_getaddr[a[2]] = $0 } /sending addr/ { split($0, a, "peer=") sent_addr[a[2]] = 1 } /socket closed/ { split($0, a, "peer=") id = a[2] if (id in got_getaddr && !(id in sent_addr)) { print "possible feeler: " got_getaddr[id] print " " $0 } delete got_getaddr[id] delete sent_addr[id] } ' possible feeler: 2026-04-01T21:45:13Z [net] received: getaddr (0 bytes) peer=2311974 2026-04-01T21:45:13Z [net] socket closed, disconnecting peer=2311974 possible feeler: 2026-04-02T00:18:58Z [net] received: getaddr (0 bytes) peer=2426389 2026-04-02T00:18:58Z [net] socket closed, disconnecting peer=2426389 ... ``` Then, you can manually inspect one of them: ``` ~ ₿ cat .bitcoin/debug.log | grep -E "peer=2311974" 2026-04-01T21:45:13Z [net] Added connection peer=2311974 2026-04-01T21:45:13Z [net] received: version (102 bytes) peer=2311974 2026-04-01T21:45:13Z [net] sending version (102 bytes) peer=2311974 2026-04-01T21:45:13Z [net] send version message: version 70016, blocks=943279, txrelay=0, peer=2311974 2026-04-01T21:45:13Z [net] sending wtxidrelay (0 bytes) peer=2311974 2026-04-01T21:45:13Z [net] sending sendaddrv2 (0 bytes) peer=2311974 2026-04-01T21:45:13Z [net] sending verack (0 bytes) peer=2311974 2026-04-01T21:45:13Z [net] receive version message: /Satoshi:27.0.0/: version 70016, blocks=943279, us=x.x.x.x:8333, txrelay=0, peer=2311974 2026-04-01T21:45:13Z [net] received: wtxidrelay (0 bytes) peer=2311974 2026-04-01T21:45:13Z [net] received: sendaddrv2 (0 bytes) peer=2311974 2026-04-01T21:45:13Z [net] received: verack (0 bytes) peer=2311974 2026-04-01T21:45:13Z New inbound v1 peer connected: version: 70016, blocks=943279, peer=2311974 2026-04-01T21:45:13Z [net] sending sendcmpct (9 bytes) peer=2311974 2026-04-01T21:45:13Z [net] sending ping (8 bytes) peer=2311974 2026-04-01T21:45:13Z [net] sending getheaders (1029 bytes) peer=2311974 2026-04-01T21:45:13Z [net] initial getheaders (943278) to peer=2311974 (startheight:943279) 2026-04-01T21:45:13Z [net] received: getaddr (0 bytes) peer=2311974 2026-04-01T21:45:13Z [net] Advertising address x.x.x.x:8333 to peer=2311974 2026-04-01T21:45:13Z [net] socket closed, disconnecting peer=2311974 2026-04-01T21:45:13Z [net] Resetting socket for peer=2311974 2026-04-01T21:45:13Z [net] sending addrv2 (24665 bytes) peer=2311974 2026-04-01T21:45:13Z [net] Cleared nodestate for peer=2311974 ``` ACKs for top commit: 0xB10C: ACK 82265b9 achow101: ACK 82265b9 andrewtoth: ACK 82265b9 stratospher: ACK 82265b9. didn't see any addr message from feelers in my node's last 24 hours/it would disconnect before addr message is received. so consistent with today's behaviour. Tree-SHA512: 1ac220dfd8361c4687399546a0d968d268e447446053fb8b90ba6b987482cc038e2ad94e670f33181d08d6d0c576882328bb5d0a8b8b1175a5e2ec31ff051833
…h feelers
b0735336eed9d79d1b1148eff16533cb2d862c01 p2p: Don't participate in addr relay with feeler connections (Daniela Brozzoni)
Pull request description:
Feeler connections are short-lived connection made to check that a node is alive, useful for test-before-evict, and for moving addresses from the new to the tried table.
We currently send a GETADDR message to feelers, but then disconnect before being able to receive a response. This GETADDR is not useful and can be removed.
I couldn't find any previous discussion about this, but I found PR #22777, that similarly made sure that we don't ask for tx relay to feelers.
---
I noticed this behavior on my peer-observer instance: I would see the number of sent GETADDR messages increase over time, but the number of ADDR messages with >100 addresses received (which are likely GETADDR responses and not self announcements relays) wouldn't increase as much. I later realized that it was my node opening feeler connections, sending a GETADDR, and closing the connection.
You can see the same behavior using this command - the node is making feeler connections, sending getaddr to them, closing before receiving the addr response:
```
~ ₿ tail -f ~/.bitcoin/debug.log | grep -E "(Making feeler connection|Added connection to|sending getaddr|feeler connection completed|Received addr: [0-9]{2,} addresses)"
2026-04-02T13:25:50Z [net] Making feeler connection to xyz.onion:8333
2026-04-02T13:26:06Z [net] Added connection to xyz.onion:8333 peer=27
2026-04-02T13:26:08Z [net] sending getaddr (0 bytes) peer=27
2026-04-02T13:26:08Z [net] feeler connection completed, disconnecting peer=27, peeraddr=xyz.onion:8333
```
On a node that accepts inbounds connections, this command can be used to see in the logs all the nodes that connected, sent a getaddr, and disconnected before receiving a reply. It is possible that these nodes connected to us as a feeler:
```
~ ₿ cat .bitcoin/debug.log | awk '
/received: getaddr/ {
split($0, a, "peer=")
got_getaddr[a[2]] = $0
}
/sending addr/ {
split($0, a, "peer=")
sent_addr[a[2]] = 1
}
/socket closed/ {
split($0, a, "peer=")
id = a[2]
if (id in got_getaddr && !(id in sent_addr)) {
print "possible feeler: " got_getaddr[id]
print " " $0
}
delete got_getaddr[id]
delete sent_addr[id]
}
'
possible feeler: 2026-04-01T21:45:13Z [net] received: getaddr (0 bytes) peer=2311974
2026-04-01T21:45:13Z [net] socket closed, disconnecting peer=2311974
possible feeler: 2026-04-02T00:18:58Z [net] received: getaddr (0 bytes) peer=2426389
2026-04-02T00:18:58Z [net] socket closed, disconnecting peer=2426389
...
```
Then, you can manually inspect one of them:
```
~ ₿ cat .bitcoin/debug.log | grep -E "peer=2311974"
2026-04-01T21:45:13Z [net] Added connection peer=2311974
2026-04-01T21:45:13Z [net] received: version (102 bytes) peer=2311974
2026-04-01T21:45:13Z [net] sending version (102 bytes) peer=2311974
2026-04-01T21:45:13Z [net] send version message: version 70016, blocks=943279, txrelay=0, peer=2311974
2026-04-01T21:45:13Z [net] sending wtxidrelay (0 bytes) peer=2311974
2026-04-01T21:45:13Z [net] sending sendaddrv2 (0 bytes) peer=2311974
2026-04-01T21:45:13Z [net] sending verack (0 bytes) peer=2311974
2026-04-01T21:45:13Z [net] receive version message: /Satoshi:27.0.0/: version 70016, blocks=943279, us=x.x.x.x:8333, txrelay=0, peer=2311974
2026-04-01T21:45:13Z [net] received: wtxidrelay (0 bytes) peer=2311974
2026-04-01T21:45:13Z [net] received: sendaddrv2 (0 bytes) peer=2311974
2026-04-01T21:45:13Z [net] received: verack (0 bytes) peer=2311974
2026-04-01T21:45:13Z New inbound v1 peer connected: version: 70016, blocks=943279, peer=2311974
2026-04-01T21:45:13Z [net] sending sendcmpct (9 bytes) peer=2311974
2026-04-01T21:45:13Z [net] sending ping (8 bytes) peer=2311974
2026-04-01T21:45:13Z [net] sending getheaders (1029 bytes) peer=2311974
2026-04-01T21:45:13Z [net] initial getheaders (943278) to peer=2311974 (startheight:943279)
2026-04-01T21:45:13Z [net] received: getaddr (0 bytes) peer=2311974
2026-04-01T21:45:13Z [net] Advertising address x.x.x.x:8333 to peer=2311974
2026-04-01T21:45:13Z [net] socket closed, disconnecting peer=2311974
2026-04-01T21:45:13Z [net] Resetting socket for peer=2311974
2026-04-01T21:45:13Z [net] sending addrv2 (24665 bytes) peer=2311974
2026-04-01T21:45:13Z [net] Cleared nodestate for peer=2311974
```
ACKs for top commit:
0xB10C:
ACK b0735336eed9d79d1b1148eff16533cb2d862c01
achow101:
ACK b0735336eed9d79d1b1148eff16533cb2d862c01
andrewtoth:
ACK b0735336eed9d79d1b1148eff16533cb2d862c01
stratospher:
ACK b073533. didn't see any addr message from feelers in my node's last 24 hours/it would disconnect before addr message is received. so consistent with today's behaviour.
Tree-SHA512: 1ac220dfd8361c4687399546a0d968d268e447446053fb8b90ba6b987482cc038e2ad94e670f33181d08d6d0c576882328bb5d0a8b8b1175a5e2ec31ff051833
Feeler connections are short-lived connection made to check that a node is alive, useful for test-before-evict, and for moving addresses from the new to the tried table.
We currently send a GETADDR message to feelers, but then disconnect before being able to receive a response. This GETADDR is not useful and can be removed.
I couldn't find any previous discussion about this, but I found PR #22777, that similarly made sure that we don't ask for tx relay to feelers.
I noticed this behavior on my peer-observer instance: I would see the number of sent GETADDR messages increase over time, but the number of ADDR messages with >100 addresses received (which are likely GETADDR responses and not self announcements relays) wouldn't increase as much. I later realized that it was my node opening feeler connections, sending a GETADDR, and closing the connection.
You can see the same behavior using this command - the node is making feeler connections, sending getaddr to them, closing before receiving the addr response:
On a node that accepts inbounds connections, this command can be used to see in the logs all the nodes that connected, sent a getaddr, and disconnected before receiving a reply. It is possible that these nodes connected to us as a feeler:
Then, you can manually inspect one of them: