From 9929e43305e2d4f871f46deba3ec86fa4fd4cbb2 Mon Sep 17 00:00:00 2001 From: dimkouv Date: Tue, 2 Apr 2024 21:36:14 +0200 Subject: [PATCH] changeset and errcheck --- .changeset/lazy-maps-live.md | 5 +++++ core/services/ocr2/plugins/ccip/ccipexec/ocr2.go | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/lazy-maps-live.md diff --git a/.changeset/lazy-maps-live.md b/.changeset/lazy-maps-live.md new file mode 100644 index 0000000000..bd1511a9cd --- /dev/null +++ b/.changeset/lazy-maps-live.md @@ -0,0 +1,5 @@ +--- +"ccip": patch +--- + +batched blessings check diff --git a/core/services/ocr2/plugins/ccip/ccipexec/ocr2.go b/core/services/ocr2/plugins/ccip/ccipexec/ocr2.go index 9ea23751e2..786ae24805 100644 --- a/core/services/ocr2/plugins/ccip/ccipexec/ocr2.go +++ b/core/services/ocr2/plugins/ccip/ccipexec/ocr2.go @@ -220,6 +220,10 @@ func (r *ExecutionReportingPlugin) getExecutableObservations(ctx context.Context } areBlessed, err := r.commitStoreReader.AreBlessed(ctx, merkleRootsToCheck) + if err != nil { + return nil, fmt.Errorf("are blessed: %w", err) + } + for i, merkleRoot := range merkleRootsToCheck { merkleRootString := hex.EncodeToString(merkleRoot[:]) isBlessed := areBlessed[i]