kaspanet / rusty-kaspa

Kaspa full-node and related libraries in the Rust programming language. This is a stable version at the initial rollout phases.
ISC License
366 stars 115 forks source link

Implement basic tx throttling on high P2P load #377

Closed coderofstuff closed 5 months ago

coderofstuff commented 5 months ago

When P2P load is high:

  1. Limit the number of peers to broadcast to
  2. Limit the number of transactions requested when requesting missing transactions
  3. Reduce the size of the invs channel and allow dropping invs when it's full