-
Notifications
You must be signed in to change notification settings - Fork 8
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
Tree is fixed depth 8 #32
Comments
yeah I can't remember anymore what were all steps to increase the size, but it may be as easy as forking and changing the constants on top of the file |
Excellent thats what i was thinking! Also, wouldn't this also require updating the
|
could you also give some insight into what the purpose of |
The magic constant "8" in the bitmap, I think, refers to the number of bits present in a byte. |
if the
|
yes I think so. I'm currently trying to remember where I got the idea of this code from. How embarrassing! Anyways, I remember parsing the compression and decompression code of Vitalik here and then breaking it down for uint8 values: https://ethresear.ch/t/optimizing-sparse-merkle-trees/3751 Here is code you might find helpful: |
no idea anymore. I think it is not significant and potentially badly named so that it's misleading the reader of the code... |
@slvrfn has your problem been solved? |
It appears the tree is of a fixed length of 8. This code appears to be easily modified to produce a tree of variable depth
The text was updated successfully, but these errors were encountered: