ArkProjectNFTs / ark-project

ArkProject is a liquidity layer for digital assets, uniting markets, empowering creators, and bridging the gap to mass adoption. Built on top of Starknet, ArkProject is designed to provide a fully decentralized and trustless orderbook on-chain.
https://arkproject.dev
Apache License 2.0
24 stars 8 forks source link

fix(pontos): detect range of new blocks #324

Open remiroyc opened 3 months ago

remiroyc commented 3 months ago

Description

Sometimes there are blocks that are not indexed.

ie:

626248 => 14:26:11 UTC+1 626249 => 14:29:14 UTC+1 (missing block) 626250 => 14:31:25 UTC+1

image

Proposed solution

The idea would be to detect if there is a missing block between the new block to be indexed and the last indexed block, and to return a range of new blocks to be indexed rather than just a single block.

What type of PR is this? (check all applicable)

changeset-bot[bot] commented 3 months ago

⚠️ No Changeset found

Latest commit: 4d94bf0e958de72a5984ff43e03f793fff72d471

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ark-project-sdk-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 25, 2024 0:48am