Skip to content

feat(indexer): Fetch transactions by digest in query transaction blocks #7875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: infra/feat/indexer-optimistic-indexing
Choose a base branch
from

Conversation

tomxey
Copy link
Contributor

@tomxey tomxey commented Jul 18, 2025

Description of change

Fetch transactions by digest in query transaction blocks.

This is to enable fetching of both optimistic and checkpointed transactions as long as we know their digests.
The rest of the function will be refactored in separate issues to get those digests and sort them properly.
For now only digests of checkpointed transactions are fetched, and they are sorted still using checkpoint ordering, not the global ordering from tx_global_order.

Links to any relevant issues

fixes #7801

How the change has been tested

cargo test --profile dev-nodebug --package iota-indexer --test rpc-tests --all-features

  • 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.

Release Notes

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

@tomxey tomxey self-assigned this Jul 18, 2025
Copy link

vercel bot commented Jul 18, 2025

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

6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-backend ⬜️ Ignored (Inspect) Visit Preview Jul 28, 2025 0:00am
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview 💬 Add feedback Jul 28, 2025 0:00am
iota-evm-bridge ⬜️ Ignored (Inspect) Visit Preview Jul 28, 2025 0:00am
iota-multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Jul 28, 2025 0:00am
rebased-explorer ⬜️ Ignored (Inspect) Visit Preview Jul 28, 2025 0:00am
wallet-dashboard ⬜️ Ignored (Inspect) Visit Preview 💬 Add feedback Jul 28, 2025 0:00am

@iota-ci iota-ci added infrastructure Issues related to the Infrastructure Team sc-platform Issues related to the Smart Contract Platform group. labels Jul 18, 2025
@tomxey tomxey force-pushed the sc-platform/fetch-transactions-by-digest-in-query-transaction-blocks branch 2 times, most recently from 0e2a116 to 3851230 Compare July 18, 2025 13:20
@tomxey tomxey marked this pull request as ready for review July 18, 2025 13:58
@tomxey tomxey requested a review from a team as a code owner July 18, 2025 13:58
@tomxey tomxey force-pushed the infra/feat/indexer-optimistic-indexing branch from 694a6b2 to 5726f0a Compare July 28, 2025 11:56
@tomxey tomxey force-pushed the sc-platform/fetch-transactions-by-digest-in-query-transaction-blocks branch from 3851230 to d1319e9 Compare July 28, 2025 11:57
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.

[indexer]: fetch optimistic transactions as well in IndexerReader::multi_get_transactions_with_sequence_numbers
3 participants