Skip to content

Use Stellar announcement cursor for incremental background scans #1

Description

@kaycke1337

The SDK is adding cursor-based Stellar announcement scanning in wraith-protocol/sdk#11 so background scans no longer need to re-fetch the same retained ledger window every five minutes.

Follow-up work:

  • persist the returned Stellar announcement cursor per scanner/wallet context
  • pass the cursor into subsequent SDK fetches
  • fall back to a bounded fromTimestamp/fromLedger scan when no cursor exists
  • handle RetentionExceededError by resetting to the oldest available ledger and surfacing telemetry

This should reduce duplicate Soroban RPC reads for recurring scans.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions