Repository navigation
Closed
Labels
Private BroadcastTracking IssueTracks longer-running projects and releases. Gathers TODOs, issues, PRs, and status updates.
Description
A meta issue to track the pull requests related to private broadcast
Initial
- πͺ π₯ β First attempt that tried to put the transaction in the mempool (#27509)
- π’ βοΈ π₯³ Implement the ability to broadcast a transaction via a short lived privacy connection and use that for the
sendrawtransactionRPC (#29415)
Followups and extensions
Wallet
- wallet: Add separate balance info for non-mempool wallet txsΒ #33671
- test: add test for rebroadcast of transaction received via p2pΒ #34359
- wallet: add private broadcast support for wallet transactionsΒ #34457
- wallet: resubmit transactions with private broadcast if enabledΒ #34533
- Adds non-mempool wallet balance to overviewΒ bitcoin-core/gui#911
Other
- rpc,net: Add private broadcast RPCsΒ #34329
- node: Persist private broadcast transactions over node restartsΒ #34322
- net: keep finished private broadcast txs in memoryΒ #34707
- fuzz: add p2p_private_broadcast harnessΒ #35090
- test: add fuzz test for private broadcastΒ #35129
- net: send decoy transactions via private broadcastΒ #35252
- rpc: make getprivatebroadcastinfo and abortprivatebroadcast fail if privatebroadcast is not enabledΒ #35267
- fuzz: PrivateBroadcastΒ #35413
Fixes and improvements
- test: use ephemeral ports in p2p_private_broadcast.pyΒ #34300
- net: avoid unconditional
privatebroadcastlogging (+ warn for debug logs)Β #34267 - test: let connections happen in any order in p2p_private_broadcast.pyΒ #34410
- net_processing: make m_tx_for_private_broadcast optionalΒ #34271
- test: fully reset the state of CConnman in testsΒ #34511
- Fix two issues in p2p_private_broadcast.pyΒ #34646
- net: fix premature stale flagging of unpicked private broadcast txsΒ #34873
- net: deduplicate private broadcast state and snapshot typesΒ #35016
- net_processing: don't modify addrman for private broadcast connectionsΒ #35032
- net: use the proxy if overriden when doing v2->v1 reconnectionsΒ #35319
- private broadcast: disallow tor connection through exit nodeΒ #35323
- private broadcast: limit outstanding txs to count of 10,000Β #35406
- net: use the proxy if overriden when doing v2->v1 reconnectionsΒ #35410
- private broadcast: bound rebroadcast attempts to 1,000Β #35680
Reacted by w0xlt and l0rinc
Reacted by Daniela Brozzoni, b10c, nervana21 and stratospher
Metadata
Metadata
Assignees
Labels
Private BroadcastTracking IssueTracks longer-running projects and releases. Gathers TODOs, issues, PRs, and status updates.
Activity
Crypt-iQ commentedon Feb 4, 2026
Looks like the private broadcast changes introduced non-determinism in the process_message(s) fuzz harnesses. They re-use the same
Connmanacross iterations, and them_outbound_tor_ok_at_least_oncemay have already been flipped true by a previous iteration. The non-determinism shows up here:bitcoin/src/net.cpp
Lines 4066 to 4071 in d4bc620
Ideally, this check would not be hit if private broadcast is disabled?
vasild commentedon Feb 5, 2026
Addressed in #34511
test: also reset CConnman::m_private_broadcast in tests
vasild commentedon Feb 7, 2026
Added #34533
wallet: resubmit transactions with private broadcast if enabledMerge #34511: test: fully reset the state of CConnman in tests
instagibbs commentedon Apr 9, 2026
should
CConnman::PrivateBroadcast::PickNetworknot be picking uniformly? If a user has both Tor and I2P configured, seems like it would bias you to pick from a much smaller bucket of nodes, about half the time (and you'd be announcing that you're from a much smaller anonymity set?)vasild commentedon Apr 10, 2026
Do you mean that the number of I2P nodes on the network is less than the number of Tor nodes?
Lets see, if both Tor and I2P are accessible, then
CConnman::PrivateBroadcast::PickNetwork()will select:IPv4 peer (will connect via the Tor network), 25% of the time
IPv6 peer (will connect via the Tor network), 25% of the time
Tor peer, 25% of the time
I2P peer, 25% of the time
In the first 3 cases, the recipient will get an information that "Somebody with access to the Tor network is sending this transaction", that is 75% of the time. In the 4th case - "Somebody with access to the I2P network is sending this transaction", 25% of the time.
Now, would it be better if the selection is not 25% uniform, but based on the number of entries in addrman? Wanting to do that somehow implies that the number of entries for a given network in addrman is proportional to the number of nodes from that network. E.g. if there are 100 Tor and 50 I2P entries in addrman, then the Bitcoin network has two times more Tor nodes than I2P nodes. Is that the case though? The way addrman bucketing works - it uses the first 4 bits from the address for both Tor and I2P to select a bucket to place a new address to...
Anyway, if that is to be done, the change would be relatively small - return the set of networks from
CConnman::PrivateBroadcast::PickNetwork()instead of just one network, then pass this set toAddrMan::Select()which picks a random entry and checks if it belongs to one of the given networks. That would favor networks with more entries in addrman.In my addrman the number of I2P entries is about 5% of the number of IPv4+IPv6+Tor+I2P entries:
instagibbs commentedon Apr 10, 2026
maybe? but that could be influenced by flooding the network with sybils, so if there's a mismatch between measured counts and known actual user counts, you'd still be exposing yourself.
vasild commentedon May 12, 2026
Added #35252
vasild commentedon May 18, 2026
Added #35267
fanquake commentedon May 19, 2026
#35319
vasild commentedon May 19, 2026
Added.
fanquake commentedon May 19, 2026
#35323
vasild commentedon May 20, 2026
Added this one as well, thanks :)
fanquake commentedon May 28, 2026
#35406
fanquake commentedon May 29, 2026
#35413
test: also reset CConnman::m_private_broadcast in tests
Merge bitcoin/bitcoin#34511: test: fully reset the state of CConnman β¦
test: also reset CConnman::m_private_broadcast in tests
Merge bitcoin/bitcoin#34511: test: fully reset the state of CConnman β¦
test: also reset CConnman::m_private_broadcast in tests
Merge bitcoin/bitcoin#34511: test: fully reset the state of CConnman β¦
vasild commentedon Oct 6, 2026
I am closing this - it served its purpose to track the initial wave of followup PRs after #29415 was merged. The wallet support has not been implemented yet. That maybe deserves a separate tracking or brainstorming issue.
Now we have the
Private Broadcastlabel on PRs and issues, so they can be tracked via:https://github.com/bitcoin/bitcoin/issues?q=state%3Aopen%20label%3A%22Private%20Broadcast%22