Skip to content

[CCIP-5809] execute: handle pseudo-deleted msgs in getFilterObservation#891

Merged
makramkd merged 1 commit intomainfrom
mk/CCIP-5809
May 5, 2025
Merged

[CCIP-5809] execute: handle pseudo-deleted msgs in getFilterObservation#891
makramkd merged 1 commit intomainfrom
mk/CCIP-5809

Conversation

@makramkd
Copy link
Collaborator

@makramkd makramkd commented May 2, 2025

The GetMessages observation could potentially include a pseudo-deleted
message which is either:

  • a message that is inflight
  • a message that has already been executed
  • a message that was not included in the observation due to size limits

In all cases, since we don't need to execute these messages, we don't
need to fetch their sender's nonce.

The GetMessages observation could potentially include a pseudo-deleted
message which is either:
- a message that is inflight
- a message that has already been executed
- a message that was not included in the observation due to size limits

In all cases, since we don't need to execute these messages, we don't
need to fetch their sender's nonce.
Comment on lines +457 to +459
// TODO: check if the commit report is all fully executed and inflight messages.
// Might be able to just not include it in the observation at all? Or is there a
// risk with that?
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xnogo @winder thoughts on this? Does it make sense?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that makes sense. There's code in here somewhere that attempts to remove fully executed commit reports. Maybe the inflight cache should use seqNum so that we can include it in the "executed message" list to trigger that code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@makramkd makramkd marked this pull request as ready for review May 2, 2025 07:19
@makramkd makramkd requested a review from a team as a code owner May 2, 2025 07:19
@github-actions
Copy link

github-actions bot commented May 2, 2025

Metric mk/CCIP-5809 main
Coverage 72.5% 72.4%

@makramkd makramkd merged commit c682274 into main May 5, 2025
40 checks passed
@mateusz-sekara mateusz-sekara deleted the mk/CCIP-5809 branch July 28, 2025 11:02
@JTCombs95-commits
Copy link

The GetMessages observation could potentially include a pseudo-deleted
message which is either:

  • a message that is inflight
  • a message that has already been executed
  • a message that was not included in the observation due to size limits

In all cases, since we don't need to execute these messages, we don't
need to fetch their sender's nonce.

Yea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments