[TASK] Prioritise certain types of proposals to sign
Closed this issue · 2 comments
1xstj commented
Task summary
If we have a large backlog of unsigned proposals in unsigned proposals queue, some operational proposals like RefreshVote
and ProposerSetUpdate
might get delayed to be picked for signing.
Prioritise certain types of proposals and pick for signing overriding the default check of "oldest proposal". The proposals with higher priority
- RefreshVote
- ProposerSetUpdate
shekohex commented
Maybe we could derive Ord
and PartialOrd
for the Proposal enum, where we order them by the type here making the RefreshVote
is the largest thing, then ProposerSetUpdate
then the rest are all equal. this way, when we insert we can always (while modifying) sort them.