Zilliqa / zq2

Zilliqa 2.0 code base
Apache License 2.0
9 stars 0 forks source link

Don't query database for block availability #1827

Closed JamesHinshelwood closed 3 days ago

JamesHinshelwood commented 3 days ago

The database query to calculate block availability is very slow (8 seconds on the devnet). Therefore, we now only perform this query once at start-up. We keep the result in a RangeMap which we keep up-to-date whenever a new block is added.