Dynamic snapshot period based on validator set size #552
Labels
feature request
Feature request
Priority: Low
Priority: Medium
x/distributor
Reward distributor module
Status Quo
Currently, the snapshot period used for calculating the performance metric P for validators is hardcoded to 1000 blocks at genesis. The static nature of the snapshot period lacks the flexibility to adapt to the dynamic conditions of the validator set, such as its size. While this approach has been functional, it's not fully optimized for a network that can grow or shrink in terms of active validators.
Proposed Change
The proposed change involves making the snapshot period dynamic, adjusting it to equal the current size of the validator set. This period would auto-update at intervals also determined by the size of the validator set. Specifically, every N blocks, where N is the size of the validator set, the snapshot period should be updated. This auto-update should only occur if there has been a change in the validator set (either addition or removal of validators).
This dynamic approach has 2 advantages:
The text was updated successfully, but these errors were encountered: