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
As we discussed in #571, I am introducing the nonce mechanism here.
add nodeKey field to replace the key of a node in DB
replace a key in DB from node.hash to nodeKey
investigate the possibility of removing version in the node structure
Design Decision
immutable tree structure
typeImmutableTreestruct {
root*Nodendb*nodeDBversionint64nonceint64// new field to track the current IDskipFastStorageUpgradebool
}
node structure
typeNodestruct {
key []bytevalue []bytehash []byteleftHash []byterightHash []bytenodeKeyint64// new field which reflects the current node keyleftNodeKeyint64// new fieldrightNodeKeyint64// new fieldversionint64// possible to remove ???sizeint64leftNode*NoderightNode*NodesubtreeHeightint8persistedbool
}