Skip to content

Private broadcast trackingΒ #34476

Closed
Closed

Description

@vasild

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 sendrawtransaction RPC (#29415)

Followups and extensions

Wallet

Other

Fixes and improvements

Activity

  1. added
    Tracking Issue
    on Feb 2, 2026
  2. Crypt-iQ commented on Feb 4, 2026

    @Crypt-iQ
    Contributor

    Looks like the private broadcast changes introduced non-determinism in the process_message(s) fuzz harnesses. They re-use the same Connman across iterations, and the m_outbound_tor_ok_at_least_once may 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

    if (!m_private_broadcast.m_outbound_tor_ok_at_least_once.load() && !pnode->IsInboundConn() &&
    pnode->addr.IsTor() && msg.m_type == NetMsgType::VERACK) {
    // If we are sending the peer VERACK that means we successfully sent
    // and received another message to/from that peer (VERSION).
    m_private_broadcast.m_outbound_tor_ok_at_least_once.store(true);
    }

    Ideally, this check would not be hit if private broadcast is disabled?

  3. vasild commented on Feb 5, 2026

    @vasild
    ContributorAuthor

    non-determinism in the process_message(s) fuzz harnesses

    Addressed in #34511

  4. vasild commented on Feb 7, 2026

    @vasild
    ContributorAuthor

    Added #34533 wallet: resubmit transactions with private broadcast if enabled

  5. added a commit that references this issue on Feb 13, 2026
  6. instagibbs commented on Apr 9, 2026

    @instagibbs
    Member

    should CConnman::PrivateBroadcast::PickNetwork not 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?)

  7. vasild commented on Apr 10, 2026

    @vasild
    ContributorAuthor

    much smaller anonymity set

    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 to AddrMan::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:

    bitcoin-cli getaddrmaninfo |jq '.i2p.total / (.ipv4.total + .ipv6.total + .onion.total + .i2p.total) * 100'
  8. instagibbs commented on Apr 10, 2026

    @instagibbs
    Member

    but based on the number of entries in addrman?

    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.

  9. vasild commented on May 12, 2026

    @vasild
    ContributorAuthor

    Added #35252

  10. vasild commented on May 18, 2026

    @vasild
    ContributorAuthor

    Added #35267

  11. fanquake commented on May 19, 2026

    @fanquake
    Member
  12. vasild commented on May 19, 2026

    @vasild
    ContributorAuthor

    #35319

    Added.

  13. fanquake commented on May 19, 2026

    @fanquake
    Member
  14. vasild commented on May 20, 2026

    @vasild
    ContributorAuthor

    #35323

    Added this one as well, thanks :)

  15. deleted a comment from on May 23, 2026
  16. deleted a comment from on May 23, 2026
  17. deleted a comment from on May 23, 2026
  18. fanquake commented on May 28, 2026

    @fanquake
    Member
  19. fanquake commented on May 29, 2026

    @fanquake
    Member
  20. added 2 commits that reference this issue on Jun 28, 2026
  21. added 2 commits that reference this issue on Jun 30, 2026
  22. added 2 commits that reference this issue on Aug 19, 2026
  23. vasild commented on Oct 6, 2026

    @vasild
    ContributorAuthor

    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 Broadcast label on PRs and issues, so they can be tracked via:

    https://github.com/bitcoin/bitcoin/issues?q=state%3Aopen%20label%3A%22Private%20Broadcast%22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Private BroadcastTracking Issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions