From fb35431aa73c04c3b0dd836ec978f4b55bf6ce88 Mon Sep 17 00:00:00 2001 From: Loc Nguyen Date: Thu, 1 Jun 2023 14:13:57 +0700 Subject: [PATCH 1/2] start_timestamp must be lesser or equal to end_timestamp --- ethereumetl/service/eth_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereumetl/service/eth_service.py b/ethereumetl/service/eth_service.py index cd12cea..549ea0d 100644 --- a/ethereumetl/service/eth_service.py +++ b/ethereumetl/service/eth_service.py @@ -40,7 +40,7 @@ class EthService(object): start_timestamp = int(start_timestamp) end_timestamp = int(end_timestamp) if start_timestamp > end_timestamp: - raise ValueError('start_timestamp must be greater or equal to end_timestamp') + raise ValueError('start_timestamp must be lesser or equal to end_timestamp') try: start_block_bounds = self._graph_operations.get_bounds_for_y_coordinate(start_timestamp) From f0e430242396c96dd07856f7a87d257d04dad265 Mon Sep 17 00:00:00 2001 From: Loc Nguyen Date: Thu, 1 Jun 2023 14:36:20 +0700 Subject: [PATCH 2/2] Fix again --- ethereumetl/service/eth_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereumetl/service/eth_service.py b/ethereumetl/service/eth_service.py index 549ea0d..e600b23 100644 --- a/ethereumetl/service/eth_service.py +++ b/ethereumetl/service/eth_service.py @@ -40,7 +40,7 @@ class EthService(object): start_timestamp = int(start_timestamp) end_timestamp = int(end_timestamp) if start_timestamp > end_timestamp: - raise ValueError('start_timestamp must be lesser or equal to end_timestamp') + raise ValueError('start_timestamp must be lesser than end_timestamp') try: start_block_bounds = self._graph_operations.get_bounds_for_y_coordinate(start_timestamp)