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

Conversation

@Lazar955
Copy link
Member

@Lazar955 Lazar955 commented Sep 4, 2025

No description provided.

Copilot AI review requested due to automatic review settings September 4, 2025 12:25
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 fixes Comet block fetching by replacing bulk blockchain info queries with individual block fetching to avoid BlockchainInfo bugs. The implementation adds retry logic with exponential backoff and proper error handling for more reliable block data retrieval.

Key changes:

  • Replaces BlockchainInfo API with individual Block queries to avoid known issues
  • Adds retry mechanism with configurable attempts and delays for improved reliability
  • Updates function signature to accept limit parameter and use int64 for height consistency

Reviewed Changes

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

File Description
bsn/cosmos/clientcontroller/consumer.go Refactors block fetching logic with retry mechanism and individual block queries
CHANGELOG.md Documents the block fetching fix

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

Copy link
Contributor

@GAtom22 GAtom22 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @Lazar955!! 🚀

Copy link
Contributor

@RafilxTenfen RafilxTenfen left a comment

Choose a reason for hiding this comment

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

LGTM

@Lazar955 Lazar955 merged commit 1a0f819 into main Sep 4, 2025
52 of 53 checks passed
@Lazar955 Lazar955 deleted the lazar/fix-cmt-query branch September 4, 2025 13:22
mergify bot pushed a commit that referenced this pull request Sep 4, 2025
(cherry picked from commit 1a0f819)

# Conflicts:
#	CHANGELOG.md
#	bsn/cosmos/clientcontroller/consumer.go
Lazar955 added a commit that referenced this pull request Sep 4, 2025
<hr>This is an automatic backport of pull request #689 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Lazar <12626340+Lazar955@users.noreply.github.com>
Co-authored-by: Lazar <lukic.lazar@yahoo.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.

4 participants