From e08fc14fa45d4ff82763940015f4caa74ec1de31 Mon Sep 17 00:00:00 2001 From: Domino Valdano <2644901+reductionista@users.noreply.github.com> Date: Tue, 19 Dec 2023 23:29:48 -0800 Subject: [PATCH] Try passing MinConfirmations=1 like LogBroadcaster does --- core/services/relay/evm/chain_reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/services/relay/evm/chain_reader.go b/core/services/relay/evm/chain_reader.go index b42de6ddc70..2330fc7ca4c 100644 --- a/core/services/relay/evm/chain_reader.go +++ b/core/services/relay/evm/chain_reader.go @@ -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") {