-
Notifications
You must be signed in to change notification settings - Fork 29
Ccip-6729 config check of offRamp and CCIPHome config digest before adding messages to inflight cache #1186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 AnieeG, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
execute/observation.go
Outdated
| // If the previous outcome was the filter state, and reports were built, mark the messages as inflight. | ||
| if previousOutcome.State == exectypes.Filter { | ||
| if err := p.checkConfigDigest(); err != nil { | ||
| return types.Observation{}, fmt.Errorf("unable to build inflight cache: %w", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return types.Observation{}, fmt.Errorf("unable to build inflight cache: %w", err) | |
| return types.Observation{}, fmt.Errorf("skipping observation: %w", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also log an error here? It's sometimes difficult to find logs when we're no longer in the plugin layer.
execute/observation.go
Outdated
| p.lggr.Warnw("my config digest doesn't match offramp's config digest, not starting", | ||
| "myConfigDigest", p.reportingCfg.ConfigDigest, | ||
| "offRampConfigDigest", hex.EncodeToString(offRampConfigDigest[:]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| p.lggr.Warnw("my config digest doesn't match offramp's config digest, not starting", | |
| "myConfigDigest", p.reportingCfg.ConfigDigest, | |
| "offRampConfigDigest", hex.EncodeToString(offRampConfigDigest[:]), | |
| p.lggr.Warnw("home chain config digest doesn't match offramp's config digest", | |
| "homeChainConfigDigest", p.reportingCfg.ConfigDigest, | |
| "offRampConfigDigest", hex.EncodeToString(offRampConfigDigest[:]), |
|
No description provided.