hexresearch / hschain

Other
4 stars 0 forks source link

Allow mempool to be used at hight throughput and restore mempool stat #680

Closed Shimuuar closed 3 years ago

Shimuuar commented 3 years ago

As it turns out old mempool gossip (try to send TX every N ms) is completely unusable at high througput. So obvious solution is to try to send TX as soon as we accepted one in the mempool. Downside of new scheme is that we won't send txs that already in the mempool to freshly connected peer. But that should be handled separately.

This PR restores collection of mempool stats as well