Skip to content

Use Stellar announcement cursor for incremental background scans #1

@kaycke1337

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions