Skip to content

Enable subsecond block times using unix nano for Time in BaseHeader#1146

Merged
nashqueue merged 5 commits into
mainfrom
manav/use_unix_nano_for_header_time
Aug 17, 2023
Merged

Enable subsecond block times using unix nano for Time in BaseHeader#1146
nashqueue merged 5 commits into
mainfrom
manav/use_unix_nano_for_header_time

Conversation

@Manav-Aggarwal

@Manav-Aggarwal Manav-Aggarwal commented Aug 17, 2023

Copy link
Copy Markdown
Member

Overview

Closes: #1147

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@Manav-Aggarwal Manav-Aggarwal changed the title Use unix nano for header time - enables subsecond block times Enable subsecond block times using unix nano for BaseHeader Time Aug 17, 2023
@Manav-Aggarwal Manav-Aggarwal changed the title Enable subsecond block times using unix nano for BaseHeader Time Enable subsecond block times using unix nano for Time in BaseHeader Aug 17, 2023
@codecov

codecov Bot commented Aug 17, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 50.00% and project coverage change: -0.09% ⚠️

Comparison is base (13987f9) 55.30% compared to head (12c7636) 55.22%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1146      +/-   ##
==========================================
- Coverage   55.30%   55.22%   -0.09%     
==========================================
  Files          62       62              
  Lines        6708     6709       +1     
==========================================
- Hits         3710     3705       -5     
- Misses       2603     2608       +5     
- Partials      395      396       +1     
Files Changed Coverage Δ
block/manager.go 8.84% <16.66%> (-0.02%) ⬇️
state/executor.go 55.52% <100.00%> (ø)
types/header.go 32.00% <100.00%> (ø)
types/test_utils.go 84.21% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Manav-Aggarwal Manav-Aggarwal marked this pull request as ready for review August 17, 2023 03:42
@Manav-Aggarwal Manav-Aggarwal requested review from MSevey, gupadhyaya, tuxcanfly and tzdybal and removed request for MSevey August 17, 2023 03:42

@MSevey MSevey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor change, otherwise looks good.

Comment thread block/manager.go Outdated
@Manav-Aggarwal Manav-Aggarwal requested a review from MSevey August 17, 2023 14:14
Comment thread config/defaults.go
@Manav-Aggarwal Manav-Aggarwal force-pushed the manav/use_unix_nano_for_header_time branch from 6d923d3 to 115b705 Compare August 17, 2023 15:49
@Manav-Aggarwal Manav-Aggarwal force-pushed the manav/use_unix_nano_for_header_time branch from 115b705 to 1512ae0 Compare August 17, 2023 16:22
@Manav-Aggarwal Manav-Aggarwal force-pushed the manav/use_unix_nano_for_header_time branch from 1512ae0 to e23e9dc Compare August 17, 2023 16:23
Comment thread config/defaults.go
@gupadhyaya gupadhyaya self-requested a review August 17, 2023 16:47
@gupadhyaya

Copy link
Copy Markdown
Contributor

@Manav-Aggarwal did you test with an aggregator and full node and ensured that blocks are synced by the full node? just ensuring that this change does not lead to any regressions.

@Manav-Aggarwal

Copy link
Copy Markdown
Member Author

@Manav-Aggarwal did you test with an aggregator and full node and ensured that blocks are synced by the full node? just ensuring that this change does not lead to any regressions.

yes

@nashqueue nashqueue enabled auto-merge August 17, 2023 17:27
@nashqueue nashqueue added this pull request to the merge queue Aug 17, 2023
Merged via the queue into main with commit 13126f3 Aug 17, 2023
@nashqueue nashqueue deleted the manav/use_unix_nano_for_header_time branch August 17, 2023 21:18
Manav-Aggarwal added a commit that referenced this pull request Sep 6, 2023
…1146)

<!--
Please read and fill out this form before submitting your PR.

Please make sure you have reviewed our contributors guide before
submitting your
first PR.
-->

## Overview

Closes: #1147

<!-- 
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue. 
-->

## Checklist

<!-- 
Please complete the checklist to ensure that the PR is ready to be
reviewed.

IMPORTANT:
PRs should be left in Draft until the below checklist is completed.
-->

- [x] New and updated code has appropriate documentation
- [x] New and updated code has new and/or updated testing
- [x] Required CI checks are passing
- [ ] Visual proof for any user facing features like CLI or
documentation updates
- [x] Linked issues closed with keywords
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable subsecond block times using unix nano for Time in BaseHeader

4 participants