snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

[Feature] Ensure validators only participate in peer gossip when feature flag is set

Open vicsn opened this issue 1 year ago • 1 comments

🚀 Feature

In order to enhance the robustness of a validator node, we should by default ensure they only accept connections from trusted clients. Given that we already have a --peers flag to specify peers, I propose we only have to add:

      --allow-outside-peers
                If the flag is set, the validator will engage in P2P gossip to request more peers.

Implementation

If the --allow-outside-peers flag is not set, a validator should not send out any PeerRequest nor accept PeerResponse. We may need to take into account that trusted peers are not dropped/shuffled.

For clients, there is no difference in behavior.

vicsn avatar Mar 05 '24 12:03 vicsn

@vicsn Isn't this done?

joske avatar Jul 03 '24 13:07 joske