Page MenuHomePhabricator

[backport#17328] GuessVerificationProgress: cap the ratio to 1
ClosedPublic

Authored by majcosta on Dec 24 2020, 05:14.

Details

Summary

2f5f7d6b135e4eab368bbafd9e6e979aa72398de GuessVerificationProgress: cap the ratio to 1 (darosior)

Pull request description:

Noticed `getblockchaininfo` would return a `verificationprogress` > 1, especially while generating. This caps the verification progress to `1`.

Tried to append a check to functional tests but this would pass even without the patch, so it seems better to not add a superfluous check (but this can easily be reproduced by trying to generate blocks in the background and `watch`ing `getblockchainfo`).

Backport of Core PR17328

Test Plan
ninja all check check-functional