We do not want to sync with old peers anyway
This commit is contained in:
committed by
Simon B
parent
f8a9526279
commit
060be4b827
@@ -263,7 +263,7 @@ impl NetAdapter for NetToChainAdapter {
|
||||
self.total_height()
|
||||
);
|
||||
|
||||
if diff.into_num() > 0 && self.p2p_server.is_initialized() {
|
||||
if self.p2p_server.is_initialized() {
|
||||
if let Some(peer) = self.p2p_server.borrow().get_peer(&addr) {
|
||||
let mut peer = peer.write().unwrap();
|
||||
peer.info.total_difficulty = diff;
|
||||
|
||||
Reference in New Issue
Block a user