checkpoint-labs / checkpoint

Checkpoint is a library for indexing data of Starknet contracts.
https://checkpoint.box
MIT License
55 stars 22 forks source link

fix: prevent fetching pool transactions every tick #284

Closed Sekhmet closed 3 months ago

Sekhmet commented 3 months ago

Currently we fetch receipt of each transaction that is in pending block on every tick, even if we already saw this transaction before.

This is causing lots of requests as block can have ~400 transactions sitting in it for minutes and we hit it every 2 seconds.

Now instead of fetching those and skipping this in handlePool we skip those before they are even fetched.