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

Fix stall on unwind in handleForkChoice #3536

Merged
merged 10 commits into from
Feb 17, 2022
Merged

Fix stall on unwind in handleForkChoice #3536

merged 10 commits into from
Feb 17, 2022

Conversation

yperbasis
Copy link
Member

+misc small fixes

@yperbasis yperbasis added the proof-of-stake "The Merge" related commits label Feb 17, 2022
@yperbasis yperbasis mentioned this pull request Feb 17, 2022
10 tasks
@yperbasis yperbasis changed the title Break infinite unwind loop in handleForkChoice Break stall on unwind in handleForkChoice Feb 17, 2022
@yperbasis yperbasis changed the title Break stall on unwind in handleForkChoice Fix stall on unwind in handleForkChoice Feb 17, 2022
@@ -224,7 +224,7 @@ func (ff *Filters) subscribeToPendingBlocks(ctx context.Context, mining txpool.M

func (ff *Filters) HandlePendingBlock(reply *txpool.OnPendingBlockReply) {
b := &types.Block{}
if len(reply.RplBlock) == 0 {
if reply == nil || len(reply.RplBlock) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

why not just reply == nil?

Copy link
Member Author

Choose a reason for hiding this comment

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

len(reply.RplBlock) == 0 was the previous check, I left it as is. But on my Erigon instance reply was nil during shutdown, thus this fix.

@yperbasis yperbasis merged commit 0701c83 into devel Feb 17, 2022
@yperbasis yperbasis deleted the kiln_stuff_2 branch February 17, 2022 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proof-of-stake "The Merge" related commits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants