diff options
| author | Sebastian Falbesoner <[email protected]> | 2020-11-08 18:37:47 +0100 |
|---|---|---|
| committer | Sebastian Falbesoner <[email protected]> | 2020-11-11 13:15:00 +0100 |
| commit | 5e146022daa4336de94447e5b8e5418296286927 (patch) | |
| tree | fae559eb646f652b68ed084898b3ae0a02366cd9 /src/script/script_error.cpp | |
| parent | Merge #20315: travis: Remove s390x build (diff) | |
| download | discoin-5e146022daa4336de94447e5b8e5418296286927.tar.xz discoin-5e146022daa4336de94447e5b8e5418296286927.zip | |
wallet: fix scanning progress calculation for single block range
If the blockchain is rescanned for a single block (i.e. start and stop hashes
are equal, and with that also the estimated verification progress) the progress
calculation could lead to a NaN value caused by a division by zero, resulting in
an invalid JSON result for the getwalletinfo RPC. Fixed by setting the progress
to zero in that special case.
Co-authored-by: MarcoFalke <[email protected]>
Diffstat (limited to 'src/script/script_error.cpp')
0 files changed, 0 insertions, 0 deletions