From 5e146022daa4336de94447e5b8e5418296286927 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Sun, 8 Nov 2020 18:37:47 +0100 Subject: 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 --- test/sanitizer_suppressions/ubsan | 1 - 1 file changed, 1 deletion(-) (limited to 'test/sanitizer_suppressions') diff --git a/test/sanitizer_suppressions/ubsan b/test/sanitizer_suppressions/ubsan index 75257d886b..7842739523 100644 --- a/test/sanitizer_suppressions/ubsan +++ b/test/sanitizer_suppressions/ubsan @@ -1,7 +1,6 @@ # -fsanitize=undefined suppressions # ================================= float-divide-by-zero:validation.cpp -float-divide-by-zero:wallet/wallet.cpp # -fsanitize=integer suppressions # =============================== -- cgit v1.2.3