CRE-4087: Adjust local config if capability registry is used to store…#22316
CRE-4087: Adjust local config if capability registry is used to store…#22316cedric-cordenier merged 3 commits intodevelopfrom
Conversation
|
👋 cedric-cordenier, 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! |
|
I see you updated files related to
|
|
✅ No conflicts with other open PRs targeting |
There was a problem hiding this comment.
Pull request overview
Risk Rating: MEDIUM — changes affect OCR local configuration (confirmations + polling interval) in oracle setup paths, which can impact runtime behavior and operational load.
This PR aims to adjust OCR LocalConfig when OCR config is sourced dynamically from the capability registry (via OCRConfigService), so nodes react to config changes faster and don’t wait on irrelevant block confirmations.
Changes:
- Adds a helper to adjust
ocrtypes.LocalConfigfor registry-based config (skip config confirmations + set a 5s poll interval). - Applies the adjustment when using registry-based config for the Vault DKG oracle and DonTime plugin.
- Logs when dynamic OCR config from the registry is used.
Scrupulous human review recommended (specific blocks):
newServicesVaultPluginregistry-based config path (main vault oracle): confirmLocalConfigis adjusted consistently with the DKG path.newDonTimePluginregistry-based config path: confirm the adjustment is applied exactly once and only under the intended conditions (current flow appears redundant due to an unconditional adjustment later).
4e08b98 to
3846f9b
Compare
3846f9b to
9a3ef86
Compare
|
#22316) * CRE-4087: Adjust local config if capability registry is used to store OCR config * CRE-4087: Adjust local config if capability registry is used to store OCR config * Small refactor
#22316) * CRE-4087: Adjust local config if capability registry is used to store OCR config * CRE-4087: Adjust local config if capability registry is used to store OCR config * Small refactor




… OCR config
Requires
Supports