Connection whitelisting on an ongoing basis

@vishal hey, you’re better served by the connection gater. The gater allows you to gate new connections on their way in and on their way out. For connections that already exist when the whitelist is updated, you will want the component that receives, accepts and applies the whitelist to get a list of active connections from the host.Network(), and close any connections to peers that are not whitelisted any longer. This component can be the same as the gater, as the gater is simply an interface. That’s probably the simplest option.

1 Like