feat: add TimeNano field for nanosecond block timestamps#2253
Draft
minhd-vu wants to merge 5 commits into
Draft
Conversation
…stamps Add nanosecond-precision block timestamp capture via new TimeNano field in BlockExtraData. This enables tracking precise block propagation timing beyond the second-precision header.Time field. Changes: - Add TimeNano field to BlockExtraData (RLP optional) - Add GetTimeNano() helper on Header - Add Placeholder hardfork to gate TimeNano validation - Validate TimeNano presence in verifyHeader for Placeholder+ blocks - Restructure Prepare to calculate timestamps before BlockExtraData encoding The Placeholder hardfork name is temporary and will be renamed.
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (69.44%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #2253 +/- ##
===========================================
+ Coverage 53.41% 53.45% +0.04%
===========================================
Files 896 896
Lines 159745 159770 +25
===========================================
+ Hits 85322 85413 +91
+ Misses 69095 69048 -47
+ Partials 5328 5309 -19
... and 24 files with indirect coverage changes
🚀 New features to boost your workflow:
|
|
Contributor
Author
|
This should be reviewed alongside: #2277 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Add nanosecond-precision block timestamp capture via new TimeNano field in BlockExtraData. This enables tracking precise block propagation timing beyond the second-precision header.Time field.
Changes:
The Placeholder hardfork name is temporary and will be renamed.
Executed tests
Rollout notes