-
Couldn't load subscription status.
- Fork 713
[Clarity-4] Implement block-time
#6478
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
Conversation
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.
|
Seems I still have some issues with the MARF in the unit tests. I'm taking a look. |
|
Note to reviewers: I am definitely open to ideas for a better way to do this without passing the block time around so much. |
|
Also, I'm realizing that I failed to epoch gate the setting of the timestamp in the MARF. That definitely needs to be fixed. |
|
Issues should be fixed and ready for review now. |
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.
I think we should take a bit of a different approach on how we insert this data into the MARF. I think it should be possible to make this data a little more abstracted from the MARF internals, which should simplify this PR.
|
Converted to draft while fixing conflicts and checking tests. |
|
Should be good to go. |
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.
Honestly just ignore my Nit :P 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.
LGTM, just had one comment on possibly unused From impls
307d088
|
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. |
Description
Applicable issues
block-time#6423Additional info (benefits, drawbacks, caveats)
Checklist
docs/rpc/openapi.yamlandrpc-endpoints.mdfor v2 endpoints,event-dispatcher.mdfor new events)clarity-benchmarkingrepo