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 nakamoto block header #4846

Merged
merged 42 commits into from
Jun 21, 2024
Merged

Conversation

obycode
Copy link
Contributor

@obycode obycode commented Jun 4, 2024

Description

(get-block-info? time block-height) uses this new timestamp in Clarity 3, instead of using the timestamp from the burn block. The signers will validate that this timestamp is:

  • Greater than the timestamp of the previous block
  • Less than 15 seconds into the future (according to their local clocks)

Applicable issues

Additional info (benefits, drawbacks, caveats)

Checklist

  • Test coverage for new or modified code paths
  • Changelog is updated
  • Required documentation changes (e.g., docs/rpc/openapi.yaml and rpc-endpoints.md for v2 endpoints, event-dispatcher.md for new events)
  • New clarity functions have corresponding PR in clarity-benchmarking repo
  • New integration test(s) added to bitcoin-tests.yml

@obycode obycode force-pushed the feat/naka-timestamp branch 2 times, most recently from d18f0c9 to 7b58613 Compare June 5, 2024 02:55
`(get-block-info? time block-height)` uses this new timestamp in Clarity
3, instead of using the timestamp from the burn block.
Since the boot contracts use 32, when the config is set to 16, this
causes many warnings.
@obycode obycode marked this pull request as ready for review June 10, 2024 20:11
@obycode obycode requested review from a team as code owners June 10, 2024 20:11
@obycode
Copy link
Contributor Author

obycode commented Jun 10, 2024

Remaining todo item: we should be able to call get-tenure-info? for the current tenure, even on the first block (related to #4789). Let me know if you'd like me to add that change to this PR, or if it's okay as a separate PR.

@obycode obycode requested a review from kantai June 10, 2024 21:03
@obycode obycode requested a review from a team as a code owner June 10, 2024 21:16
@obycode obycode enabled auto-merge June 21, 2024 17:40
@obycode obycode requested review from jcnelson and kantai June 21, 2024 18:33
kantai
kantai previously approved these changes Jun 21, 2024
jcnelson
jcnelson previously approved these changes Jun 21, 2024
@obycode obycode added this pull request to the merge queue Jun 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 21, 2024
@obycode obycode enabled auto-merge June 21, 2024 19:44
@obycode obycode added this pull request to the merge queue Jun 21, 2024
@obycode obycode removed this pull request from the merge queue due to a manual request Jun 21, 2024
@obycode obycode dismissed stale reviews from kantai and jcnelson via 9b721cc June 21, 2024 20:17
@obycode obycode requested review from jcnelson and kantai June 21, 2024 20:18
@obycode obycode enabled auto-merge June 21, 2024 20:46
@obycode obycode added this pull request to the merge queue Jun 21, 2024
Merged via the queue into develop with commit 75d5bc9 Jun 21, 2024
1 check passed
@obycode obycode deleted the feat/naka-timestamp branch June 21, 2024 22:29
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Oct 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants