Skip to content

Conversation

@s1na
Copy link
Contributor

@s1na s1na commented Jan 4, 2022

Fixes #24161

The issue is in the condition b.numberOrHash == nil && b.header == nil. The linked issue is coincidentally also fixed by #24190 because then b.header is always present, but this PR is a more correct fix for this particular bug.

@s1na s1na requested a review from gballet as a code owner January 4, 2022 18:36
@rjl493456442
Copy link
Member

rjl493456442 commented Jan 5, 2022

Looks like this Parent resolver is always wrong? If the numberOrHash is assigned but header is not resolved then nil is always returned...
But anyway I think the fix is good.

@fjl fjl merged commit 3ccd6b6 into ethereum:master Jan 5, 2022
@fjl fjl added this to the 1.10.15 milestone Jan 5, 2022
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Jan 6, 2022
JacekGlen pushed a commit to JacekGlen/go-ethereum that referenced this pull request May 26, 2022
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.

GraphQL blocks query not resolving parent consistently

4 participants