Problem: There is currently a limit on the number of concurrent ongoing proposals, due to the fact that proposals need to be sorted (for flush) and that this is done using a set, which cannot grow indefinitely without causing gas cost problems.
Solution: Remove proposal_key_list_sort_by_level and use a doubly linked list instead to store the proposals in order.
Related issue(s)
Resolves #316
:white_check_mark: Checklist for your Pull Request
Related changes (conditional)
Tests
[x] If I added new functionality, I added tests covering it.
[x] If I fixed a bug, I added a regression test to prevent the bug from
silently reappearing again.
Documentation
[x] I checked whether I should update the docs and did so if necessary:
Description
Problem: There is currently a limit on the number of concurrent ongoing proposals, due to the fact that proposals need to be sorted (for
flush
) and that this is done using aset
, which cannot grow indefinitely without causing gas cost problems.Solution: Remove
proposal_key_list_sort_by_level
and use a doubly linked list instead to store the proposals in order.Related issue(s)
Resolves #316
:white_check_mark: Checklist for your Pull Request
Related changes (conditional)
Tests
Documentation
Stylistic guide (mandatory)