You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically make a bit array, where every leaf in the tree has, say, 1024 bits of data, instead of only 1 bit, or all the bits. Then updating bits is very I/O efficient given that the underlying tree is merkelized. Every leaf causes on average 2*hash_size amount of extra bytes beyond leaf value to be stored in the ideal merkle tree, hash_size=32 bytes = 256 bits, so thats an overhead in the ideal of 512 bits.
I don't trust our current code doing sensible things, so I'd suggest making each leaf 1024 bits.
This dramatically reduces state size, and makes downloading new pruned nodes from chainlayer cheaper
Basically make a bit array, where every leaf in the tree has, say, 1024 bits of data, instead of only 1 bit, or all the bits. Then updating bits is very I/O efficient given that the underlying tree is merkelized. Every leaf causes on average 2*hash_size amount of extra bytes beyond leaf value to be stored in the ideal merkle tree, hash_size=32 bytes = 256 bits, so thats an overhead in the ideal of 512 bits.
I don't trust our current code doing sensible things, so I'd suggest making each leaf 1024 bits.
This dramatically reduces state size, and makes downloading new pruned nodes from chainlayer cheaper
cosmos/cosmos-sdk#2562
The text was updated successfully, but these errors were encountered: