Erlay: Filter fanout candidates based on transaction knowledge

Jan 31 - Feb 4, 2025

  • The discussion revolves around an essential aspect of the Bitcoin network, particularly focusing on the strategy for propagating transactions among peers.

At the heart of this exploration is the Erlay protocol and its implications for network efficiency. A specific scenario is presented where Alice's node has a transaction, and Bob's node, having already validated a copy of the transaction, sends Alice an inv or a sketch with the wtxid. This raises a critical question: should Alice send Bob an inv for the transaction, even though Bob already knows about it? The underlying query probes into whether peers aware of a transaction should be included in the fanout process for disseminating that transaction.

The intuitive approach suggests excluding peers already informed about a transaction to ensure a high rate of dissemination to uninformed nodes, especially during the early stages of transaction propagation. Such a method assumes that as more nodes become aware of the transaction, the selection pool will naturally decrease, leading to a gradual reduction in the fanout rate. However, this assumption was put to the test through simulations within a network model consisting of 110,000 nodes. Counterintuitively, the results revealed that there was no significant difference in propagation dynamics between filtering out informed peers and including them in the dissemination process.

These findings prompt a deeper examination of transaction propagation mechanics within the Bitcoin network, highlighting the distinct roles played by reachable and unreachable nodes. Unreachable nodes, primarily relying on outbound connections for transaction announcements, contrast with reachable nodes that have a wider range of transaction awareness due to their higher connectivity. Further investigation into the GETDATA request delay parameters revealed how these settings impact the network's transaction spread. The timing before a node receives a transaction and schedules its announcement is crucial for understanding how information about transactions permeates through the network.

In conclusion, despite initial expectations, opting to filter peers based on their prior knowledge of transactions does not significantly affect the overall efficiency of transaction propagation. This insight emphasizes the need to consider the unique characteristics of the Bitcoin network when developing strategies for optimizing transaction dissemination, showcasing the intricate balance between network topology, node behavior, and propagation tactics.

Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiBitcoin Transcripts Review
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project?

Give Feedback