From 2b6b5e6b82f95063a656592b7533804ed4402df1 Mon Sep 17 00:00:00 2001 From: harisang Date: Fri, 22 Nov 2024 01:39:21 +0200 Subject: [PATCH] remove redundant code --- src/sync/common.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/sync/common.py b/src/sync/common.py index 698b9bc..79917f9 100644 --- a/src/sync/common.py +++ b/src/sync/common.py @@ -56,14 +56,6 @@ def find_block_with_timestamp(node, time_stamp): return block.number -def compute_block_range_from_timestamps(node, start_timestamp, end_timestamp): - start_block = find_block_with_timestamp(node, start_timestamp) - end_block = find_block_with_timestamp(node, end_timestamp) - if node.eth.get_block(end_block).timestamp > end_timestamp: - end_block = end_block - 1 - return start_block, end_block - - def compute_block_and_month_range(node: Web3): # We first compute the relevant block range # Here, we assume that the job runs at least once every 24h