ethereum-etl icon indicating copy to clipboard operation
ethereum-etl copied to clipboard

fix for #309 cannot get block ranges for dates on arbitrum

Open sfsf9797 opened this issue 2 years ago • 2 comments

https://github.com/blockchain-etl/ethereum-etl/issues/309

sfsf9797 avatar May 04 '22 15:05 sfsf9797

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)

jensenity avatar Aug 27 '23 04:08 jensenity

Ya it happens when the coordinates has same value for Y, should be a simple fix. Cc @allenday too

sfsf9797 avatar Aug 27 '23 05:08 sfsf9797