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

add ocr offchainConfig and chain config structs #36

Merged
merged 11 commits into from
Aug 6, 2024
Prev Previous commit
Next Next commit
Merge branch 'ccip-develop' into CCIP-2836
  • Loading branch information
makramkd committed Aug 6, 2024
commit d01cc4681531e4d1b63d66e4e9e202687eaccd59
5 changes: 1 addition & 4 deletions execute/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ func NewPlugin(
tokenDataReader types2.TokenDataReader,
lggr logger.Logger,
) *Plugin {
lastReportTS := &atomic.Int64{}
lastReportTS.Store(time.Now().Add(-cfg.OffchainConfig.MessageVisibilityInterval.Duration()).UnixMilli())

// TODO: initialize tokenDataReader.

readerSyncer := plugincommon.NewBackgroundReaderSyncer(
Expand Down Expand Up @@ -169,7 +166,7 @@ func (p *Plugin) Observation(
}
}

fetchFrom := time.Now().Add(-p.cfg.MessageVisibilityInterval).UTC()
fetchFrom := time.Now().Add(-p.cfg.OffchainConfig.MessageVisibilityInterval.Duration()).UTC()
p.lggr.Infow("decoded previous outcome", "previousOutcome", previousOutcome)

// Phase 1: Gather commit reports from the destination chain and determine which messages are required to build a
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.