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

Clean up revealed secrets in SecretRegistry #1442

Open
homakov opened this issue Mar 17, 2021 · 0 comments
Open

Clean up revealed secrets in SecretRegistry #1442

homakov opened this issue Mar 17, 2021 · 0 comments

Comments

@homakov
Copy link

homakov commented Mar 17, 2021

10000 gas is refunded to someone who sets storage slot to 0. Why store revealed secrets after 100-1000 blocks?

https://github.com/raiden-network/raiden-contracts/blob/master/raiden_contracts/data/source/raiden/SecretRegistry.sol

They will never be used again, so something like batchRemove that checks that it was revealed 1000 blocks in the past would be helpful.

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