ethereum-etl
ethereum-etl copied to clipboard
fix for #309 cannot get block ranges for dates on arbitrum
https://github.com/blockchain-etl/ethereum-etl/issues/309
hi @medvedev1088, I'm also facing the same problem rn running optimism etl but getting the same coordinate in y...
File "/usr/local/lib/python3.8/site-packages/ethereumetl/service/graph_operations.py", line 87, in _get_bounds_for_y_coordinate_recursive
[2023-08-26, 16:44:00 UTC] {pod_manager.py:367} INFO - return self._get_bounds_for_y_coordinate_recursive(y, *bounds)
[2023-08-26, 16:44:00 UTC] {pod_manager.py:367} INFO - File "/usr/local/lib/python3.8/site-packages/ethereumetl/service/graph_operations.py", line 87, in _get_bounds_for_y_coordinate_recursive
[2023-08-26, 16:44:00 UTC] {pod_manager.py:367} INFO - return self._get_bounds_for_y_coordinate_recursive(y, *bounds)
[2023-08-26, 16:44:00 UTC] {pod_manager.py:367} INFO - File "/usr/local/lib/python3.8/site-packages/ethereumetl/service/graph_operations.py", line 87, in _get_bounds_for_y_coordinate_recursive
[2023-08-26, 16:44:00 UTC] {pod_manager.py:367} INFO - return self._get_bounds_for_y_coordinate_recursive(y, *bounds)
[2023-08-26, 16:44:00 UTC] {pod_manager.py:367} INFO - File "/usr/local/lib/python3.8/site-packages/ethereumetl/service/graph_operations.py", line 77, in _get_bounds_for_y_coordinate_recursive
[2023-08-26, 16:44:00 UTC] {pod_manager.py:367} INFO - estimation2_x = interpolate(*points, y)
[2023-08-26, 16:44:00 UTC] {pod_manager.py:367} INFO - File "/usr/local/lib/python3.8/site-packages/ethereumetl/service/graph_operations.py", line 117, in interpolate
[2023-08-26, 16:44:00 UTC] {pod_manager.py:367} INFO - raise ValueError('The y coordinate for points is the same {}, {}'.format(point1, point2))
[2023-08-26, 16:44:00 UTC] {pod_manager.py:367} INFO - ValueError: The y coordinate for points is the same (136,1636667979), (137,1636667979)
Ya it happens when the coordinates has same value for Y, should be a simple fix. Cc @allenday too