reth icon indicating copy to clipboard operation
reth copied to clipboard

Optimize peers for mempool transactions or sync (--peer-mode flag)

Open NicolasWent opened this issue 1 year ago • 2 comments

Describe the feature

Hello,

I recently realized that my node is not efficient when it comes to capturing mempool transactions.

Someone on Telegram suggested that I should try and experiment with multiple peers so that I can find the one that propagate me the transactions the fastest.

My suggestion here would be to make a feature that would automatically search and select the best peers to get mempool transactions the fastest and the most amount of them.

Additional context

Maybe a flag like: --peer-mode could be great.

It would look like this: WHen you first sync your node, you would do: --peer-mode=optimize-sync

Once your node is synced you can switch to: --peer-mode=optimize-mempool

NicolasWent avatar Sep 05 '24 13:09 NicolasWent

could you please elaborate on what these modes are supposed to do?

WHen you first sync your node, you would do: --peer-mode=optimize-sync

Once your node is synced you can switch to: --peer-mode=optimize-mempool

are you constrained by the number of connected peers?

mattsse avatar Sep 06 '24 11:09 mattsse

This issue is stale because it has been open for 21 days with no activity.

github-actions[bot] avatar Sep 28 '24 02:09 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Oct 06 '24 02:10 github-actions[bot]