mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
We create a new net Setting called BanPolicy that can be Strict or Relaxed. If it's set to Strict, we ban peers that send messages without us having a corresponding Dispatcher. If it's set to Relaxed we simply close the connection. Lilith is set to Relaxed by default while other peers are set to Strict. This helps us avoid Lilith blacklisting peers that send messages for protocols it is not subscribed to.