Remove code no longer in master :-S
This commit is contained in:
parent
7208f9f95c
commit
47cd9ff34c
@ -460,7 +460,7 @@ impl ChainSync {
|
|||||||
trace!(target: "sync", "{} Deactivated for invalid headers response", peer_id);
|
trace!(target: "sync", "{} Deactivated for invalid headers response", peer_id);
|
||||||
self.deactivate_peer(io, peer_id);
|
self.deactivate_peer(io, peer_id);
|
||||||
}
|
}
|
||||||
if headers.is_empty() && self.state == SyncState::ChainHead {
|
if headers.is_empty() {
|
||||||
// Peer does not have any new subchain heads, deactivate it nd try with another
|
// Peer does not have any new subchain heads, deactivate it nd try with another
|
||||||
trace!(target: "sync", "{} Deactivated for no data", peer_id);
|
trace!(target: "sync", "{} Deactivated for no data", peer_id);
|
||||||
self.deactivate_peer(io, peer_id);
|
self.deactivate_peer(io, peer_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user