go-spacemesh
go-spacemesh copied to clipboard
Bandwidth limiting in go-spacemesh
Description
In some cases, go-spacemesh may consume too much bandwidth, overwhelming users' network connections.
While this needs to be fixed by improving pubsub and sync mechanisms, the users need to be able to prevent such occurrences even at the cost of some temporary go-spacemesh network protocol inefficiences.
There should be the following controls:
- global bandwidth limit on all of the p2p streams
- per-peer bandwidth limit
Some implementation ideas: https://github.com/juju/ratelimit