Skip to content

Conversation

@tomxey
Copy link
Contributor

@tomxey tomxey commented Dec 2, 2025

Description of change

Use historic fallback in IndexerAPI

This includes:

  • query_transaction_blocks:
    • support for case when user filters by checkpoints sequence id (this is handled with no additional overhead to queries on unpruned data)
  • query_events
    • support for case when user filters by tx digest (this adds an overhead to queries on unpruned data that return 0 events, as we cannot distinguish case when data is pruned vs. case where data is not pruned but there are just no matching events)

Links to any relevant issues

fixes #9474

How the change has been tested

Describe the tests that you ran to verify your changes.

Make sure to provide instructions for the maintainer as well as any relevant configurations.

  • Basic tests (linting, compilation, formatting, unit/integration tests)
  • Patch-specific tests (correctness, functionality coverage)

Infrastructure QA (only required for crates that are maintained by @iotaledger/infrastructure)

  • Synchronization of the indexer from genesis for a network including migration objects.
  • Restart of indexer synchronization locally without resetting the database.
  • Restart of indexer synchronization on a production-like database.
  • Deployment of services using Docker.
  • Verification of API backward compatibility.

change not effective yet, so no QA for now

@tomxey tomxey self-assigned this Dec 2, 2025
@vercel
Copy link

vercel bot commented Dec 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

6 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
apps-backend Ignored Ignored Preview Dec 5, 2025 3:01pm
apps-ui-kit Ignored Ignored Preview Dec 5, 2025 3:01pm
iota-evm-bridge Ignored Ignored Preview Dec 5, 2025 3:01pm
iota-multisig-toolkit Ignored Ignored Preview Dec 5, 2025 3:01pm
rebased-explorer Ignored Ignored Preview Dec 5, 2025 3:01pm
wallet-dashboard Ignored Ignored Preview Dec 5, 2025 3:01pm

@iota-ci iota-ci added infrastructure Issues related to the Infrastructure Team sc-platform Issues related to the Smart Contract Platform group. labels Dec 2, 2025
@tomxey tomxey force-pushed the sc-platform/use-historic-fallback-in-indexer-api branch from 39db7fa to e4e59f6 Compare December 3, 2025 08:27
@tomxey tomxey marked this pull request as ready for review December 3, 2025 08:28
@tomxey tomxey requested a review from a team as a code owner December 3, 2025 08:28
@tomxey tomxey linked an issue Dec 3, 2025 that may be closed by this pull request
Base automatically changed from sc-platform/issue-9411-historical-fallback-reader-impl to infa/feat/indexer-historical-fallback-storage-support December 3, 2025 13:10
@tomxey tomxey force-pushed the sc-platform/use-historic-fallback-in-indexer-api branch from c09aff8 to e51d06d Compare December 3, 2025 13:26
Copy link
Contributor

@kodemartin kodemartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Issues related to the Infrastructure Team sc-platform Issues related to the Smart Contract Platform group.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(indexer): Use HistoricalFallbackReader for IndexerApi

4 participants