Skip to content

Commit

Permalink
Ignore ingestion when events are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
psheth9 committed Jun 11, 2024
1 parent 3940d27 commit 4d0c280
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/soroban-rpc/internal/db/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ func (eventHandler *eventHandler) InsertEvents(lcm xdr.LedgerCloseMeta) error {
return err
}

if len(txEvents) == 0 {
continue
}

query := sq.Insert(eventTableName).
Columns("id", "ledger_sequence", "application_order", "contract_id", "event_type")

Expand Down

0 comments on commit 4d0c280

Please sign in to comment.