Skip to content

fix: switch aggregate pipeline to /fee_stats with idempotent persistence - #558

Merged
Tinna23 merged 4 commits into
StellarCommons:mainfrom
temiport25:fix/fee-data-ingestion
Aug 24, 2026
Merged

fix: switch aggregate pipeline to /fee_stats with idempotent persistence#558
Tinna23 merged 4 commits into
StellarCommons:mainfrom
temiport25:fix/fee-data-ingestion

Conversation

@temiport25

Copy link
Copy Markdown
Contributor

Summary

Changes the aggregate fee pipeline from sampling /transactions to using Horizon's /fee_stats endpoint.

Changes

  • Adds FeeStatsResponse/FeeChargedStats/MaxFeeStats structs for /fee_stats deserialization
  • Adds fetch_fee_stats_full() method to HorizonClient
  • Adds FeeStatsSnapshot domain model with TryFrom conversion
  • Adds run_fee_stats_polling scheduler with retry logic
  • Adds upsert_fee_snapshot with ON CONFLICT for idempotent persistence
  • Adds 004_fee_stats_snapshots migration

Closes #550

@Tinna23
Tinna23 merged commit 6a0cf13 into StellarCommons:main Aug 24, 2026
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix fee data ingestion, modeling, and idempotent persistence

2 participants