trueblocks-core icon indicating copy to clipboard operation
trueblocks-core copied to clipboard

Optimism has 170,000,000 blocks so far - not a problem?

Open tjayrush opened this issue 1 year ago • 0 comments

I just started scraping Optimism...it has 117,278,316 blocks. This is fine except for one thing.

We use "%09-%09" for block ranges. That won't work as soon as Optimism goes over 1 billion blocks which I would project will happen relatively soon. Optimism's block zero was at 2021-11-11 21:16:39 UTC. This is 73,926,500 seconds before the current moment (as I write).

That's one block every .63 seconds (which is incorrect -- they must have bumped their block number at the bedrock fork). Let's use one block per 2 seconds.

1 billion - 117,278,316 == 882,721,684 blocks / one / 2 seconds = 55 years

Not a problem?

tjayrush avatar Mar 16 '24 12:03 tjayrush