stellar-etl icon indicating copy to clipboard operation
stellar-etl copied to clipboard

State table verification

Open lucaszanotelli opened this issue 2 years ago • 0 comments

Overview

This implements Horizon's verify package to stellar-etl command export_ledger_entry_changes. It only verifies entries from checkpoint ledgers (every 64 ledgers, every ~5 minutes).

Changes

  • Add Raw* fields types AccountOutput, OfferOutput, PoolOutput, ClaimableBalanceOutput and TrustlineOutput
  • Add LedgerIsCheckpoint() function to utils package
  • Add TransformedOutput type to internal/transform/schema.go to assist the Horizon's verify package implementation
  • Refactor internal/utils/verify.go to work with stellar-etl
  • Update unit tests to add new fields

Closes GH#279 Closes GH#280 Closes GH#281

lucaszanotelli avatar Nov 21 '22 17:11 lucaszanotelli