Skip to content

Conversation

obycode
Copy link
Contributor

@obycode obycode commented Sep 11, 2025

Description

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

This new keyword retrieves the timestamp for the current block by
storing it in the MARF. This means it also works as expected inside of
an `at-block` context.
@obycode obycode requested review from a team as code owners September 11, 2025 12:41
@obycode obycode moved this to Status: In Review in Stacks Core Eng Sep 11, 2025
@obycode obycode added this to the 3.3.0.0.0 milestone Sep 11, 2025
@obycode obycode linked an issue Sep 11, 2025 that may be closed by this pull request
@obycode
Copy link
Contributor Author

obycode commented Sep 11, 2025

Seems I still have some issues with the MARF in the unit tests. I'm taking a look.

@obycode
Copy link
Contributor Author

obycode commented Sep 11, 2025

Note to reviewers: I am definitely open to ideas for a better way to do this without passing the block time around so much.

@obycode
Copy link
Contributor Author

obycode commented Sep 11, 2025

Also, I'm realizing that I failed to epoch gate the setting of the timestamp in the MARF. That definitely needs to be fixed.

@obycode obycode marked this pull request as draft September 11, 2025 20:42
@obycode obycode marked this pull request as ready for review September 12, 2025 15:12
@obycode obycode requested a review from kantai September 12, 2025 15:15
@obycode
Copy link
Contributor Author

obycode commented Sep 12, 2025

Issues should be fixed and ready for review now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Status: In Review
Development

Successfully merging this pull request may close these issues.

[Clarity-4] block-time
2 participants