From 965cd0c9f8a60f9ab7528c8779c412854c352a0e Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:48:18 +0200 Subject: [PATCH] fix --- utils/compare_blocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/compare_blocks.py b/utils/compare_blocks.py index c01d916b..9744737b 100644 --- a/utils/compare_blocks.py +++ b/utils/compare_blocks.py @@ -53,9 +53,9 @@ while low <= high: if hash_1 == hash_2: first_matching_block = mid - high = mid - 1 # Continue searching in the lower half + high = mid + 1 # Continue searching in the upper half else: - low = mid + 1 # Continue searching in the upper half + low = mid - 1 # Continue searching in the lower half # Sleep for one second before the next comparison time.sleep(1)