diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-11-08 18:37:47 +0100 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-11-11 13:15:00 +0100 |
commit | 5e146022daa4336de94447e5b8e5418296286927 (patch) | |
tree | fae559eb646f652b68ed084898b3ae0a02366cd9 /build_msvc/libbitcoin_cli | |
parent | 7e373294a5ae819099c39d9d03d1f5a311d63cfc (diff) |
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 <falke.marco@gmail.com>
Diffstat (limited to 'build_msvc/libbitcoin_cli')
0 files changed, 0 insertions, 0 deletions