From e9e616323bc44daf61f4358f5b2de58e90b5c602 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 28 Oct 2015 03:07:59 +0100 Subject: Make -checkmempool=1 not fail through int32 overflow --- src/txmempool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/txmempool.h b/src/txmempool.h index 6aa5f6d77c..7b5843a8d0 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -360,7 +360,7 @@ public: * check does nothing. */ void check(const CCoinsViewCache *pcoins) const; - void setSanityCheck(double dFrequency = 1.0) { nCheckFrequency = dFrequency * 4294967296.0; } + void setSanityCheck(double dFrequency = 1.0) { nCheckFrequency = dFrequency * 4294967295.0; } // addUnchecked must updated state for all ancestors of a given transaction, // to track size/count of descendant transactions. First version of -- cgit v1.2.3