-
Notifications
You must be signed in to change notification settings - Fork 493
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
agreement: fix receivedAt proposal performance timing #5041
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.
looks pretty simple
LGTM
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.
Any idea why adding unexported field triggered so many changes in msgp_gen?
Codecov Report
@@ Coverage Diff @@
## master #5041 +/- ##
==========================================
- Coverage 53.68% 52.44% -1.25%
==========================================
Files 432 432
Lines 54068 54069 +1
==========================================
- Hits 29029 28356 -673
- Misses 22793 23430 +637
- Partials 2246 2283 +37
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Summary
In #4583 I tried to add a receivedAt proposal timing, following the pattern in #3703 for adding the validatedAt timing, but didn't correctly account for the receivedAt time needing to be attached to the
unauthenticatedProposal
while the validatedAt time is attached to the validatedproposal
type. So the receivedAt timing when reported atensureAction
time was 0.The receivedAt and validatedAt timings are only used for telemetry reporting of performance information in the BlockAcceptedEventDetails message.
Test Plan
Added a test
TestPlayerRetainsReceivedValidatedAt
to reproduce this behavior, then fixed it.