Przeglądaj źródła

net: remove whitelist_downgrade() from outbound_session (monero doesn't do this)

lunar-mining 2 lat temu
rodzic
commit
d591fac8dc
1 zmienionych plików z 0 dodań i 4 usunięć
  1. 0 4
      src/net/session/outbound_session.rs

+ 0 - 4
src/net/session/outbound_session.rs

@@ -319,10 +319,6 @@ impl Slot {
                     self.slot, addr, e
                     self.slot, addr, e
                 );
                 );
 
 
-                // At this point we failed to connect.
-                // Remove this item from the whitelist and add it to the greylist.
-                self.p2p().hosts().whitelist_downgrade(&addr).await;
-
                 // Remove connection from pending
                 // Remove connection from pending
                 self.p2p().remove_pending(&addr).await;
                 self.p2p().remove_pending(&addr).await;