diff --git a/.changeset/tiny-camels-flow.md b/.changeset/tiny-camels-flow.md new file mode 100644 index 00000000000..3271bbb4a39 --- /dev/null +++ b/.changeset/tiny-camels-flow.md @@ -0,0 +1,5 @@ +--- +"chainlink": patch +--- + +#bugfix fixed ureachable code bug which could result in stuck txns diff --git a/core/chains/evm/logpoller/orm.go b/core/chains/evm/logpoller/orm.go index b9a1ca39f4a..1d249760736 100644 --- a/core/chains/evm/logpoller/orm.go +++ b/core/chains/evm/logpoller/orm.go @@ -394,9 +394,6 @@ func (o *DSORM) insertLogsWithinTx(ctx context.Context, logs []Log, tx sqlutil.D ON CONFLICT DO NOTHING` _, err := o.ds.NamedExecContext(ctx, query, logs[start:end]) - if err != nil { - return err - } if err != nil { if pkgerrors.Is(err, context.DeadlineExceeded) && batchInsertSize > 500 { // In case of DB timeouts, try to insert again with a smaller batch upto a limit