Skip to content

Commit

Permalink
fix: forgot to add equals (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler authored Dec 10, 2024
1 parent e9d7b8b commit cb319e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/p2p/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cb319e3

Please sign in to comment.