Skip to content

Commit

Permalink
changeset and errcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkouv committed Apr 2, 2024
1 parent 30afc46 commit 9929e43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-maps-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccip": patch
---

batched blessings check
4 changes: 4 additions & 0 deletions core/services/ocr2/plugins/ccip/ccipexec/ocr2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 9929e43

Please sign in to comment.