Skip to content

Commit

Permalink
fix: Temporary remove peer eviction logic
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWaWaR authored and doitian committed Apr 10, 2019
1 parent 9995c5c commit 52c529e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sync/src/synchronizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,10 @@ impl<CI: ChainIndex> Synchronizer<CI> {
}
for peer in eviction {
warn!(target: "sync", "timeout eviction peer={}", peer);
// Do not connect this peer in 3 minutes
nc.ban_peer(peer, Duration::from_secs(180));
nc.disconnect(peer);

// FIXME: learn how bitcoin handle this evicted peer, then fix this.
// nc.ban_peer(peer, Duration::from_secs(180));
// nc.disconnect(peer);
}
}

Expand Down

0 comments on commit 52c529e

Please sign in to comment.