-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
@@ -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 { |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
+misc small fixes