Skip to content
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

Message storage - need to delete all previous messages since beginning of time #81

Open
IdoZilberberg opened this issue Sep 25, 2019 · 0 comments

Comments

@IdoZilberberg
Copy link
Contributor

When starting to work on a new block, message storage is deleted from the previous block.
It might be possible that due to successive node syncs, dangling data will remain.

It is safer to try to delete all messages since the beginning of time (block height = 0) up to the previous block.

Go over the keys of every map (prepareStorage, commitStorage, etc) and delete() all those with block heights older than current one. Or - delete them all, as there is not supposed to be any relevant data in the map at that point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant