paradigmxyz / cryo

cryo is the easiest way to extract blockchain data to parquet, csv, json, or python dataframes
Apache License 2.0
1.12k stars 97 forks source link

Attempt to divide by 0 when using --align for method "contracts" with block range 1:1001 #150

Open Cybourgeoisie opened 9 months ago

Cybourgeoisie commented 9 months ago

Version cryo commit 041f38b, latest as of writing

Platform Mac OSX

Description Note: this error occurred when connected to a reth archive node.

Running the following command produces an "attempt to divide by 0" fatal error:

cryo contracts -b 1:1001 --rpc http://192.168.1.183:8545 --compression gzip 6 -e chain_id --chunk-size 1000 --hex --requests-per-second 50 --align

The error: Stderr: thread 'main' panicked at 'attempt to divide by zero', crates/freeze/src/types/summaries.rs:467:26