This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
contracts: Cap the maximum amount of storage a contract can accumulate #7526
Labels
I2-security
The client fails to follow expected, security-sensitive, behaviour.
As explained in #6594 having contracts with large amount of storage can lead to a DoS vector when a contract is removed. The long term solution is the described lazy storage removal. As an interim solution we can also cap the allowed storage size so that removing a contract never takes longer than the allotted block time. The following steps are necessary for that:
claim_surcharge
pre weight according to the maximum amount of storage items. Use post dispatch correction to return the actual weight and disable fees on success.The text was updated successfully, but these errors were encountered: