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

feat: add timestamp to all event protos #4722

Merged
merged 4 commits into from
Jul 18, 2024
Merged

Conversation

vacekj
Copy link
Member

@vacekj vacekj commented Jul 18, 2024

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

Copy link
Member

@hdevalence hdevalence left a 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.

@vacekj vacekj changed the title feat: add timestamp to EventBlockRoot proto feat: add timestamp to all event protos Jul 18, 2024
Copy link
Contributor

@cronokirby cronokirby left a 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!

@vacekj vacekj merged commit e360740 into main Jul 18, 2024
13 checks passed
@vacekj vacekj deleted the add-timestamp-to-block-root-event branch July 18, 2024 16:59
vacekj added a commit that referenced this pull request Jul 19, 2024
## Describe your changes

- builds on top of #4722
- consumes timestamps from raw events to create detailed_blocks in
processed events db

## Issue ticket number and link

fixes #4675
cronokirby pushed a commit that referenced this pull request Jul 22, 2024
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
cronokirby added a commit that referenced this pull request Jul 22, 2024
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>
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.

3 participants