Skip to content

Conversation

@rizkyikiw42
Copy link
Contributor

Add nil checks for header and block in Block resolver methods to prevent panic when querying non-existent blocks.

@rizkyikiw42 rizkyikiw42 requested a review from s1na as a code owner November 19, 2025 02:25
if err != nil {
return nil, err
}
if b.header == nil {
Copy link
Member

Choose a reason for hiding this comment

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

This change makes all the following changes unnecessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @MariusVanDerWijden, updated, pleasee take a look, thanks.

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