Просмотр исходного кода

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

lunar-mining 2 лет назад
Родитель
Сommit
d591fac8dc
1 измененных файлов с 0 добавлено и 4 удалено
  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
                 );
 
-                // 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
                 self.p2p().remove_pending(&addr).await;