-
Notifications
You must be signed in to change notification settings - Fork 3.6k
op-node: Handle duplicate outgoing supervisor events #16441
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering out loud: would this timestamp TTL also be useful for reducing things like UpdateCrossUnsafeEvent
during deep sync operations?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #16441 +/- ##
===========================================
- Coverage 46.91% 45.99% -0.92%
===========================================
Files 1394 1340 -54
Lines 112800 108561 -4239
===========================================
- Hits 52915 49938 -2977
+ Misses 56150 55028 -1122
+ Partials 3735 3595 -140
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
@axelKingsley yes we could totally leverage the new edit: although the cleaner fix imo is to make the code more robust and not send duplicates in the first place. I would like for us to switch some events/triggers to be range-based instead of single-block based. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes make sense, although I am still slightly concerned with the L1 traversal itself.
4ce2563
to
b1c859d
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stamping so that we can optimistically merge and trigger post-merge CI.
b1c859d
to
e7ce3ac
Compare
e7ce3ac
to
3bf2116
Compare
Description
StepReqEvent
insideSyncDeriver.onIncomingP2PBlock
- this was causing an avalanche of exhaust l1 eventsTests
Added unit test of new
eventTimestamp
type and unit test of event handling behavior ofManagedNode
.Additional context
As long as we haven't fully verified that the node isn't sending a burst of duplicate events in some edge cases, it is safer to deduplicate sending events to the supervisor in this way.
Metadata
Fixes #16284