-
Notifications
You must be signed in to change notification settings - Fork 302
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
feat: add timestamp to all event protos #4722
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.
This looks good, but can we add the timestamp to the EventEpochRoot
and EventAnchor
as well? Even if the data is duplicated across multiple events, I think it will be useful for downstream data consumers to be able to access it directly.
For instance, the difference between the time a transaction was accepted into a block and the timestamp of the anchor it proves against is an interesting measurement / information leak -- it gives info about the combined latency of proving + tx submission -- and it'd be convenient to have timestamps on every anchor.
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.
Awesome, let's merge this!
this makes a non-consensus-breaking change, adding a timestamp field to the EventBlockRoot proto. This will be used to keep track of the timestamp of the block for use in pindexer. I tested this by running a local devnet with the changes to core. Pd runs fine and the timestamps are correctly propagated to the raw events db. prerequisite for #4675 - [x] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: - only adds a field - adds this field to an Event proto
this makes a non-consensus-breaking change, adding a timestamp field to the EventBlockRoot proto. This will be used to keep track of the timestamp of the block for use in pindexer. I tested this by running a local devnet with the changes to core. Pd runs fine and the timestamps are correctly propagated to the raw events db. prerequisite for #4675 - [x] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: - only adds a field - adds this field to an Event proto ## Describe your changes ## Issue ticket number and link ## Checklist before requesting a review - [ ] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: > REPLACE THIS TEXT WITH RATIONALE (CAN BE BRIEF) --------- Co-authored-by: Josef <vacekj@outlook.com> Co-authored-by: Conor Schaefer <conor@penumbralabs.xyz>
Describe your changes
this makes a non-consensus-breaking change, adding a timestamp field to the EventBlockRoot proto.
This will be used to keep track of the timestamp of the block for use in pindexer.
I tested this by running a local devnet with the changes to core. Pd runs fine and the timestamps are correctly propagated to the raw events db.
Issue ticket number and link
prerequisite for #4675
Checklist before requesting a review
If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:
only adds a field
adds this field to an Event proto