-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Staking OCW should not create solutions that are too big #7170
Description
Currently, the network size is such that the solutions to the NPoS easily fit into a block, both in terms of weight and size (TODO: script to report these easily). Sooner or later, we might reach a point where the solution might not fit into a block. For this, we have permanent solutions:
- limit the total number of nominators
- DNPoS
But one way or another, if we don't have these limitations, the OCW must be capable of generating a solution that is sane and fits in the block.
The danger is that a malicious actor might generate a lot of nominators, so that the OCW will always generate a solution that is too big to fit. Then, they can submit a mediocre solution on chain which will be accepted. Sadly, we won't fallback to on-chain phragmen either.
This can also be mitigated by implementing the PJR-check #7009.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status