• Gary Rong's avatar
    trie: implement NodeBlob API for trie iterator · 55430b6e
    Gary Rong authored
    This functionality is needed in new path-based storage scheme, but
    can be implemented in a seperate PR though.
    
    When an account is deleted, then all the storage slots should be
    nuked out from the disk as well. In hash-based storage scheme they
    are still left in the disk but in new scheme, they will be iterated
    and marked as deleted.
    
    But why the NodeBlob API is needed in this scenario? Because when
    the node is marked deleted, the previous value is also required to
    be recorded to construct the reverse diff.
    55430b6e
trie.go 18.2 KB