Skip to content

log #893

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

log #893

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
5 changes: 5 additions & 0 deletions execute/observation.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ func (p *Plugin) Observation(

// If the previous outcome was the filter state, and reports were built, mark the messages as inflight.
if previousOutcome.State == exectypes.Filter {
lggr.Infow("previous outcome was the filter state, marking messages as inflight", "previousOutcome", previousOutcome)
for _, chainReport := range previousOutcome.Report.ChainReports {
lggr.Infow("marking messages as inflight", "chainReport", chainReport)
for _, message := range chainReport.Messages {
lggr.Infow("marking message as inflight", "message", message)
p.inflightMessageCache.MarkInflight(chainReport.SourceChainSelector, message.Header.MessageID)
}
}
Expand Down Expand Up @@ -426,6 +429,8 @@ func (p *Plugin) getMessagesObservation(
for _, msg := range msgs {
// If a message is inflight or already executed, don't include it fully in the observation
// because its already been transmitted in a previous report or executed onchain.
// If msg is not already inflight, add it
lggr.Infow("checking if message is inflight", "messageID", msg.Header.MessageID, "srcChain", srcChain)
if p.inflightMessageCache.IsInflight(srcChain, msg.Header.MessageID) {
continue
}
Expand Down
Loading