Skip to content

Conversation

@dai1975
Copy link
Contributor

@dai1975 dai1975 commented Oct 8, 2025

fakelost is not occurred if query height is zero

@dai1975 dai1975 requested a review from Copilot October 8, 2025 07:06
Copy link

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 prevents fakelost errors from occurring when the query height is zero by adding early return checks in two debug functions.

  • Added zero height validation in debug fake lost functions
  • Early return prevents downstream processing when query height is invalid

Reviewed Changes

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

File Description
provers/debug/prover.go Added zero height check to prevent fakelost processing
chains/debug/query.go Added identical zero height check for consistency

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

Signed-off-by: Daisuke Kanda <[email protected]>
@dai1975 dai1975 requested a review from Copilot October 8, 2025 08:48
Copy link

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

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


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

Signed-off-by: Daisuke Kanda <[email protected]>
@dai1975 dai1975 changed the title fakelost is not occured if query height is zero fakelost is not occurred if query height is zero Oct 8, 2025
@dai1975 dai1975 marked this pull request as ready for review October 8, 2025 09:39
@dai1975 dai1975 requested a review from a team as a code owner October 8, 2025 09:39
@dai1975 dai1975 requested a review from siburu October 8, 2025 09:40
Copy link
Contributor

@siburu siburu left a comment

Choose a reason for hiding this comment

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

LGTM!

@siburu siburu merged commit 7b367c9 into hyperledger-labs:main Oct 9, 2025
9 checks passed
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.

2 participants