Change difficulty rule: use the median as reference instead of 5
Currently the personal handicap is computed over 5
:
PERSONAL_EXCESS = MAX(0, (nbPersonalBlocksInFrame / 5) - 1)
A better approach could be to replace 5
by medianInFrame
, which would correspond to the median of issued blocks per issuer.
We used 5
because it is the number used for computing the frame of difficulty IssuersFrame
. But the median would be fairer: the personal handicap would depend on other peers CPU power, not an arbitrary number.
So compared to DUP 0.4, which is already fairer than DUP 0.3 as long as block issuance repartition is concerned, DUP 0.5 would increase again the difficulty of the best issuers, leaving more room for little issuers.