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
The SELFDESTRUCT code requires an ability to destroy any account with its underlying storage tree in one call like:
IWorldState.Destroy(anAccountToBeDestroyed)
This should be implemented in a way that is aligned with the write-trough behavior of Paprika's tree in PageDb so that the information if flushed down not necessarily immediately which could result in a lot of writes. If a page contains only storage information for the given account, it could be easily batch.RegisterForFutureReuse() so maybe it's possible to do a deep walk through the tree from the given level and find all the matches and write just the top page.
The text was updated successfully, but these errors were encountered:
Scooletz
added
the
ethereum
An Ethereum specific work item that requires a good understanding of Eth
label
Aug 3, 2023
Or just check and iterate. For accounts with small storages, it will be several deletes. With accounts with Massive Storage Trees, it can be just removal of the MST + special operation for the Merkle.
The
SELFDESTRUCT
code requires an ability to destroy any account with its underlying storage tree in one call like:IWorldState.Destroy(anAccountToBeDestroyed)
This should be implemented in a way that is aligned with the write-trough behavior of Paprika's tree in
PageDb
so that the information if flushed down not necessarily immediately which could result in a lot of writes. If a page contains only storage information for the given account, it could be easilybatch.RegisterForFutureReuse()
so maybe it's possible to do a deep walk through the tree from the given level and find all the matches and write just the top page.The text was updated successfully, but these errors were encountered: