mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
We do not want to sync with old peers anyway
This commit is contained in:
parent
f8a9526279
commit
060be4b827
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue