Skip to content

Persist Stellar Payment Listener Cursor to Database #144

@Emmzyemms

Description

@Emmzyemms

Labels: bug, reliability, backend

Description

The Stellar payment listener (src/stellar/stellar-payment-listener.service.ts) tracks its cursor (the last processed transaction) in memory only. When the service restarts, it loses the cursor and may reprocess old payments or miss payments that arrived during the downtime.

Acceptance Criteria

  • Cursor is persisted to the database (a new StellarCursor table or a key-value config table)
  • On startup, the listener reads the last saved cursor from the database
  • Cursor is updated in the database after each successfully processed payment
  • If no cursor exists in the database, the listener starts from "now" (not from the beginning of the ledger)
  • Prisma migration included for the new table/column
  • Unit tests cover cursor persistence and recovery on restart

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions