Removed hidden iteration via for-loop from dapps-staking.
iter_key_prefix() reads in all keys which makes its usage very expensive and uncontrollable in weight and PoV size.
The idea behind this commit is to show a most simple solution on how this problem can be solved.
Check list
[ ] contains breaking changes
[ ] adds new feature
[x] modifies existing feature (bug fix or improvements)
[ ] relies on other tasks
[ ] documentation changes
[ ] tests and/or benchmarks are included
[ ] changed API client type definition or chain metadata
Pull Request Summary
Removed hidden iteration via for-loop from dapps-staking.
iter_key_prefix()
reads in all keys which makes its usage very expensive and uncontrollable in weight and PoV size.The idea behind this commit is to show a most simple solution on how this problem can be solved.
Check list