Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

ocr2: add CCIP spec validation#372

Merged
winder merged 2 commits intoccip-developfrom
will/ccip-288
Dec 14, 2023
Merged

ocr2: add CCIP spec validation#372
winder merged 2 commits intoccip-developfrom
will/ccip-288

Conversation

@winder
Copy link
Contributor

@winder winder commented Dec 12, 2023

Motivation

Validate CCIP plugin configuration prior to loading the plugin when possible so that we can fail fast rather than attempting to start with bad configuration.

Solution

Add handling to existing validateSpec function.

s := time.Now()
r.lggr.Infow("start replaying src chain", "fromBlock", r.srcStartBlock)
srcReplayErr := r.src.Replay(ctx, r.srcStartBlock)
srcReplayErr := r.src.Replay(ctx, int64(r.srcStartBlock))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replay is used by other plugins, so it would be much more involved to propagate the type change further than this point.

@winder winder force-pushed the will/ccip-288 branch 4 times, most recently from 6897ebd to 0ebe7d9 Compare December 13, 2023 14:52
@winder winder marked this pull request as ready for review December 13, 2023 15:19
@winder winder requested a review from a team as a code owner December 13, 2023 15:19
@winder winder requested a review from RensR December 13, 2023 15:53
@RensR RensR changed the title CCIP-288: ocr2: add CCIP spec validation ocr2: add CCIP spec validation Dec 13, 2023
Copy link
Collaborator

@RensR RensR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@winder winder enabled auto-merge (squash) December 14, 2023 14:39
@winder winder merged commit 1360be8 into ccip-develop Dec 14, 2023
@winder winder deleted the will/ccip-288 branch December 14, 2023 14:58
jasonmci pushed a commit that referenced this pull request Dec 15, 2023
asoliman92 pushed a commit that referenced this pull request Jul 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants