Skip to content

Commit

Permalink
Dont error out when operation index out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikiyer56 committed Nov 20, 2024
1 parent d158205 commit 66abef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ingest/ledger_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (t *LedgerTransaction) GetOperationChanges(operationIndex uint32) ([]Change

func (t *LedgerTransaction) operationChanges(ops []xdr.OperationMeta, index uint32) ([]Change, error) {
if int(index) >= len(ops) {
return []Change{}, errors.New("operation index out of range")
return []Change{}, nil // TODO - operations_processor somehow seems to be failing without this
}

operationMeta := ops[index]
Expand Down

0 comments on commit 66abef5

Please sign in to comment.