Skip to content

[DataAvailability] Implement fork-aware Streaming Transaction Status Endpoints #7654

@peterargue

Description

@peterargue

Update Streaming Transaction Status endpoints to use caching layer to get data from local storage.

  • SubscribeTransactionStatuses
  • SendAndSubscribeTransactionStatuses

Implementation tasks

  1. Add arguments to backend implementation that specify the user query criteria
  2. Update grpc handler to extract and pass the criteria from the protobuf request
  3. Update rest handler to extract and pass the criteria
  4. In the backend implementation:
    a. Get the block(s) the request relates to
    b. Lookup the execution result for the provided block
    c. Get the snapshot for the result, then get the storage reader(s) required for the endpoint
    d. Use the reader as usual
  5. Update error handling to use the new framework
  6. Ensure godocs are up to standard for all methods that are interacted with during the code paths.

Notes:
These methods should be updated to support querying local storage when indexing is enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions