From 4d0fa11526f4279db523d64b77bcc557b4e7d915 Mon Sep 17 00:00:00 2001 From: stringhandler Date: Tue, 10 Dec 2024 11:55:54 +0200 Subject: [PATCH] fix: forgot to add equals --- src/server/p2p/network.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/p2p/network.rs b/src/server/p2p/network.rs index f4d0001..d33333f 100644 --- a/src/server/p2p/network.rs +++ b/src/server/p2p/network.rs @@ -1680,7 +1680,7 @@ where S: ShareChain let (max_known_network_height, max_known_network_pow, peer_with_best) = peer_store_write_lock.max_known_network_height(algo); - if our_pow.as_u128() > max_known_network_pow || Some(&peer) == peer_with_best.as_ref() { + if our_pow.as_u128() >= max_known_network_pow || Some(&peer) == peer_with_best.as_ref() { info!(target: SYNC_REQUEST_LOG_TARGET, "[{}] our pow is greater than max known network pow, we are now synced", algo); synced_bool.store(true, std::sync::atomic::Ordering::SeqCst); } else {