Skip to content
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

Bugfix/auto log trigger config update #10650

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions core/services/ocr2/plugins/ocr2keeper/evm21/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,16 @@ func (r *EvmRegistry) refreshLogTriggerUpkeepsBatch(logTriggerIDs []*big.Int) er
for _, id := range logTriggerIDs {
logBlock, ok := configSetBlockNumbers[id.String()]
if !ok {
r.lggr.Warnf("unable to find finalized config set block number for %s, skipping refresh", id.String())
continue
r.lggr.Warnf("unable to find finalized config set block number for %s, using 0 as config start block", id.String())
// Use zero as config update block so it can be updated if an actual event is found later
logBlock = 0
}

config, ok := perUpkeepConfig[id.String()]
if !ok {
r.lggr.Warnf("unable to find per finalized log config for %s, skipping refresh", id.String())
continue
r.lggr.Warnf("unable to find per finalized log config for %s, will fetch latest config from chain", id.String())
// Set it to empty bytes so that latest config is fetched within r.updateTriggerConfig
config = []byte{}
}

// In case an upkeep was paused then unpaused after a config set event, start the config from the unpaused block number
Expand Down
Loading