Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve stability of
futurePParams
prediction:
Ensure that every Conway Epoch begins with a correct prediction for `futurePParams`. The problem that this commit fixes has to do with the fact that `futurePParams` where correctly predicted on the very first `TICK`. However, if there are no blocks prior to point-of-no-return, which can't happen on a normal running chain, there would be no `TICK`, thus there would be no prediction. So, regardless if there was a correct prediciton after the point-of-no-return, `PParamUpdate` would be simply ignored, since `futurePParams` would be already set to `NoPParamUpdate`. Despite the fact that this can't really happen on mainnet, we can fix this quite easily by predicting `futurePParams` during DRepPulser initialization, which is exactly what being imlemented in this commit.
- Loading branch information