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

Make isCanonical call not fail on incorrect height. #301

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

marcopeereboom
Copy link
Contributor

When the caller, for whatever reason, calls isCanonical with a block header that sits higher on the chain than best block header it cannot be canonical. This case did return false but also an error. Remove the error since the block simply is not canonical.

Summary

Changes

When the caller, for whatever reason, calls isCanonical with a block
header that sits higher on the chain than best block header it cannot be
canonical. This case did return false but also an error. Remove the
error since the block simply is not canonical.
@marcopeereboom marcopeereboom requested a review from a team as a code owner November 6, 2024 10:27
@github-actions github-actions bot added the area: tbc This is a change to TBC (Tiny Bitcoin) label Nov 6, 2024
Copy link
Contributor

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

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

OK

@marcopeereboom marcopeereboom merged commit 2d8adf3 into main Nov 6, 2024
6 checks passed
@marcopeereboom marcopeereboom deleted the marco/fixupcanonical branch November 6, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tbc This is a change to TBC (Tiny Bitcoin)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants