这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Lazar955
Copy link
Member

@Lazar955 Lazar955 commented Sep 9, 2025

No description provided.

Copilot AI review requested due to automatic review settings September 9, 2025 15:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the block querying mechanism in the CosmWasm consumer controller to use indexed block queries instead of direct CometBFT block range queries.

  • Replaces the queryCometBlocksInRange function with calls to queryLatestBlocks for better performance
  • Updates the QueryBlocks implementation to use the indexed approach with proper parameters
  • Removes unused imports and simplifies the codebase by eliminating retry logic for block fetching

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
bsn/cosmos/e2e/bcd_test_manager.go Removes build constraint for e2e_bcd tests
bsn/cosmos/e2e/bcd_handler.go Removes build constraint for e2e_bcd tests
bsn/cosmos/e2e/bcd_consumer_e2e_test.go Removes build constraint for e2e_bcd tests
bsn/cosmos/clientcontroller/consumer.go Refactors QueryBlocks to use indexed queries and removes range-based block fetching
CHANGELOG.md Adds changelog entry for the query indexed block improvement

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Lazar955 Lazar955 merged commit fdeeee6 into main Sep 10, 2025
21 checks passed
@Lazar955 Lazar955 deleted the lazar/query-indexed-block branch September 10, 2025 11:53
mergify bot pushed a commit that referenced this pull request Sep 10, 2025
(cherry picked from commit fdeeee6)
Lazar955 added a commit that referenced this pull request Sep 10, 2025
<hr>This is an automatic backport of pull request #709 done by
[Mergify](https://mergify.com).

Co-authored-by: Lazar <12626340+Lazar955@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants