Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ledgerSeq to error #5638

Merged
merged 1 commit into from
Mar 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ingest/processors/token_transfer/verify_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ func VerifyEvents(ledger xdr.LedgerCloseMeta, passphrase string) error {
eventsMap = findBalanceDeltasFromEvents(events)

if diff := cmp.Diff(eventsMap, changesMap); diff != "" {
return fmt.Errorf("balance delta mismatch between events and ledger changes:\n"+
"('-' indicates missing or different in events, '+' indicates missing or different in ledger changes)\n%s", diff)
return fmt.Errorf("balance delta mismatch between events and ledger changes for ledgerSequence: %v\n"+
"('-' indicates missing or different in events, '+' indicates missing or different in ledger changes)\n%s", ledger.LedgerSequence(), diff)
}
return nil
}
Loading