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: auto-set block timestamp for historical queries (#15448) #440

Merged
merged 1 commit into from
May 8, 2023

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented May 8, 2023

Closes: #XXX

Backport: cosmos#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

  • Does this pull request introduce a new feature or user-facing behavior changes? no
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? no
  • How is the feature or change documented? not applicable

@p0mvn p0mvn requested a review from a team May 8, 2023 18:26
Copy link
Member

@czarcas7ic czarcas7ic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@p0mvn p0mvn merged commit 8a66b9a into osmosis-main May 8, 2023
@p0mvn p0mvn deleted the roman/backport-historic-block-time branch May 8, 2023 20:38
p0mvn added a commit that referenced this pull request May 8, 2023
p0mvn added a commit that referenced this pull request May 8, 2023
…(backport #440) (#441)

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

* updates

* updates

* updates

---------

Co-authored-by: Roman <roman@osmosis.team>
p0mvn added a commit that referenced this pull request May 9, 2023
p0mvn added a commit that referenced this pull request May 9, 2023
…(backport #440) (#442)

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

* go mod tidy

---------

Co-authored-by: Roman <roman@osmosis.team>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants