Skip to content

Commit

Permalink
Try passing MinConfirmations=1 like LogBroadcaster does
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista committed Dec 20, 2023
1 parent 7999d45 commit e08fc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/relay/evm/chain_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (cr *chainReader) getLatestValueFromLogPoller(ctx context.Context, contract
return err
}

log, err := cr.lp.LatestLogByEventSigWithConfs(hash, ae.addr, logpoller.Unconfirmed)
log, err := cr.lp.LatestLogByEventSigWithConfs(hash, ae.addr, 1)
if err != nil {
errStr := err.Error()
if strings.Contains(errStr, "not found") || strings.Contains(errStr, "no rows") {
Expand Down

0 comments on commit e08fc14

Please sign in to comment.