From 3cdd15010349e5b08d7782bfc04aec78c17befcb Mon Sep 17 00:00:00 2001 From: Akshay Aggarwal Date: Sun, 24 Sep 2023 17:40:01 +0100 Subject: [PATCH] improve comment --- .../ocr2/plugins/ocr2keeper/evm21/registry_check_pipeline.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/services/ocr2/plugins/ocr2keeper/evm21/registry_check_pipeline.go b/core/services/ocr2/plugins/ocr2keeper/evm21/registry_check_pipeline.go index bcece51c883..7fcc4139acb 100644 --- a/core/services/ocr2/plugins/ocr2keeper/evm21/registry_check_pipeline.go +++ b/core/services/ocr2/plugins/ocr2keeper/evm21/registry_check_pipeline.go @@ -130,7 +130,8 @@ func (r *EvmRegistry) verifyLogExists(upkeepId *big.Int, p ocr2keepers.UpkeepPay checkBlockHash := common.BytesToHash(p.Trigger.BlockHash[:]) if checkBlockHash.String() == logBlockHash.String() { // log verification would be covered by checkBlock verification as they are the same. Return early from - // log verificaion + // log verificaion. This also helps in preventing some racy conditions when rpc does not return the tx receipt + // for a very new log return encoding.UpkeepFailureReasonNone, encoding.NoPipelineError, false } // if log block number is populated, check log block number and block hash