-
-
Notifications
You must be signed in to change notification settings - Fork 20
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: return correct property gindex for ContainerNodeStructType #328
base: master
Are you sure you want to change the base?
Conversation
Performance Report✔️ no performance regression detected 🚀🚀 Significant benchmark improvement detected
Full benchmark results
|
@@ -77,9 +77,6 @@ export class ContainerNodeStructType<Fields extends Record<string, Type<unknown> | |||
|
|||
// ContainerNodeStructType can only parse proofs that contain all the data. | |||
// TODO: Support converting a partial tree to a partial value | |||
getPropertyGindex(): null { | |||
return null; | |||
} |
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.
It's been a while since I dealt with this code, but what about the comment?
ContainerNodeStructType can only parse proofs that contain all the data
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 agree with the comment. I can put in a more effort to make the UX a bit nicer here
Motivation
While doing gindex calculations on a BeaconState, noticed that there is a 'bug' in getting gindexes for validator entries.
Description
Remove the overridden getPropertyGindex that prevents calculation of gindices on a ContainerNodeStructType