Przeglądaj źródła

lilith: fix logic error that was causing responsive nodes to be sent to greylist

draoi 2 lat temu
rodzic
commit
df8c1a8e86
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      bin/lilith/src/main.rs

+ 1 - 1
bin/lilith/src/main.rs

@@ -197,7 +197,7 @@ impl Lilith {
                         continue
                     }
 
-                    if p2p.session_refine().handshake_node(url.clone(), p2p.clone()).await {
+                    if !p2p.session_refine().handshake_node(url.clone(), p2p.clone()).await {
                         debug!(target: "net::refinery:::whitelist_refinery",
                        "Host {} is not responsive. Downgrading from whitelist", url);