We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Note that CometBFT block times have nanosecond precision, rounded to the nearest 0 in UTC and stripped off of any monotonic component: https://github.com/osmosis-labs/tendermint/blob/167fa738a379147f333b86f539bc03f597b978e5/libs/time/time.go#L17
CometBFT
At the same time, Context.WithBlockTime() does not perform the rounding to the nearest zero and stripping away any monotonic component: https://github.com/cosmos/cosmos-sdk/blob/v0.46.10/types/context.go#L149
Context.WithBlockTime()
The behavior is inconsistent with CometBFT
Make WithBlockTime() consistent with CometBFT canonical time.
WithBlockTime()
Improve documentation around this nuance, including:
BlockTime()
The text was updated successfully, but these errors were encountered:
likhita-809
Successfully merging a pull request may close this issue.
Summary
Note that
CometBFT
block times have nanosecond precision, rounded to the nearest 0 in UTC and stripped off of any monotonic component:https://github.com/osmosis-labs/tendermint/blob/167fa738a379147f333b86f539bc03f597b978e5/libs/time/time.go#L17
Problem Definition
At the same time,
Context.WithBlockTime()
does not perform the rounding to the nearest zero and stripping away any monotonic component:https://github.com/cosmos/cosmos-sdk/blob/v0.46.10/types/context.go#L149
The behavior is inconsistent with CometBFT
Proposal
Make
WithBlockTime()
consistent with CometBFT canonical time.Improve documentation around this nuance, including:
WithBlockTime()
.BlockTime()
The text was updated successfully, but these errors were encountered: