Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduces a decay alpha which decreases ALL scores by a small amount of every step. This is effectively a ping for the miners so that those which are not alive pay a cost for not participating.
An initial value of
decay_alpha=0.001
is set which would reduce all scores by 0.001 on everyrun_step
. Given that currentlystep_size=50
, the expected number of steps before a given UID is queried is around 1000/50 = 20.This means that a UIDs score will tend to decrease by 0.02 between subsequent queries due to score decay, which is negligible compared to the ~0.3 that is typically scored. The net effect for active UIDs is a uniform drop in all scores by 0.02.
However, for UIDs that are not active this will compound so that their scores drop by 0.02 each time a query is missed - so after 10 missed queries (or 200 steps) their scores will drop by 0.2. In other words, miners that are not consistently alive will be at risk of deregistration.
TODO: unit tests for alpha decay