mev-commit-p2p
mev-commit-p2p copied to clipboard
Add blocklisting and connection gating
- Blocklisting can be handled at the libp2p level which makes it transparent for the protocol handlers. This can be done by protocols either returning some specific error which can include reason and time to blocklist. Also, we can have a top-level interface in the libp2p.Service to blocklist with reason and time.
- Add libp2p.ConnectionGater option. This can use blocklist or other mechanisms to prevent unnecessary protocol traffic on the node.