Mar 12 - Mar 12, 2026
For instance, one node, referred to as nodeA, was observed sending and receiving various types of messages, including inv (inventory), tx (transactions), tmplt (template), and tmplttxn (template transactions) with volumes reaching up to 35 million for sent inventory messages and 15 million for received inventory messages. Another node, nodeB, showed different patterns, notably sending 138 million transaction messages while receiving only 3 million. These observations suggest that the network traffic could be as demanding as adding an additional peer, primarily due to the large volume of inventory messages exchanged.
In response to these findings, there is an exploration into utilizing minisketch, a library for efficient set reconciliation, to reduce the network traffic. The strategy involves using 46-bit short ids for identification, as recommended by the minisketch documentation, because this size is considered optimal for the library's implementation and minimizes the chances of false positives among thousands of entries. The proposed solution employs a bisection approach with eight sketches, each having a capacity of 256. This method aims to efficiently reconcile differences between node mempools with varying degrees of divergence. For smaller discrepancies of fewer than a couple of hundred items, a single sketch of approximately 1500 bytes should suffice for perfect recovery. If the differences span up to around 1000 items, four sketches are likely to successfully reconcile the data. However, for over 2000 differences, the full set of shortids would need to be communicated. There's optimism that many situations will require only a single sketch for resolution, potentially minimizing the traffic significantly. Nonetheless, should there be a necessity, the introduction of a secondary mechanism employing smaller (32 byte) shortids for capturing any remaining false positives through an additional small sketch is considered a viable backup plan. Further development and testing will determine the efficacy of these strategies in reducing network traffic while maintaining accurate and efficient data reconciliation.
Thread Summary (0 replies)
Mar 12 - Mar 12, 2026
1 messages
TLDR
We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.
We'd love to hear your feedback on this project.
Give Feedback