-
Notifications
You must be signed in to change notification settings - Fork 9
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
Implement incremental packed list (basic type list/vector) hashing #122
Conversation
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.
LGTM! There is a couple of cosmetic fixes might worth to be done.
private MerkleTrie updatePackedTrie( | ||
SSZListType type, | ||
Object value, | ||
BiFunction<Integer, Object, MerkleTrie> childVisitor, |
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 appears that childVisitor
is not used.
int typeSize = basicListType.getElementType().getSize(); | ||
int valsPerChunk = bytesPerChunk / typeSize; | ||
if (valsPerChunk * typeSize != bytesPerChunk) { | ||
throw new UnsupportedOperationException(""); |
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.
Let's add some message here.
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.
LGTM
This is the completion of PR #115
Also addresses one item of the issue #120
No special tricks comparing to non-packed lists except the support for serializing subLists were added