osmosis-labs / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Apache License 2.0
14 stars 31 forks source link

feat: auto-set block timestamp for historical queries (#15448) #440

Closed p0mvn closed 1 year ago

p0mvn commented 1 year ago

Closes: #XXX

Backport: https://github.com/cosmos/cosmos-sdk/pull/15448

What is the purpose of the change

This was breaking historical TWAP queries since the block time would always be set to the latest block time, and not the historical block time.

Testing and Verifying

This change is a trivial rework / code cleanup without any test coverage.

Documentation and Release Note