-
-
Notifications
You must be signed in to change notification settings - Fork 291
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 reorg depth count #5160
Fix reorg depth count #5160
Conversation
…ts and the common ancestor slot (ChainSafe#5136)
@@ -767,7 +767,7 @@ export class ForkChoice implements IForkChoice { | |||
return blocksAtSlot; | |||
} | |||
|
|||
/** Returns the distance of common ancestor of nodes to newNode. Returns null if newNode is descendant of prevNode */ | |||
/** Returns the distance of common ancestor of nodes to the max of the newNode and the prevNode. Returns null if newNode is descendant of prevNode */ |
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.
Seems this null comment is stale. Can you just remove it?
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.
Line 781 suggests the noCommonAncestor error code is equivalent to a null response which is why I left it
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.
I think that comment was from before we returned a AncestorResult
.
🎉 This PR is included in v1.6.0 🎉 |
Closes #5136