Skip to content

Commit e9e6163

Browse files
committed
Make -checkmempool=1 not fail through int32 overflow
1 parent 8daffe2 commit e9e6163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/txmempool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ class CTxMemPool
360360
* check does nothing.
361361
*/
362362
void check(const CCoinsViewCache *pcoins) const;
363-
void setSanityCheck(double dFrequency = 1.0) { nCheckFrequency = dFrequency * 4294967296.0; }
363+
void setSanityCheck(double dFrequency = 1.0) { nCheckFrequency = dFrequency * 4294967295.0; }
364364

365365
// addUnchecked must updated state for all ancestors of a given transaction,
366366
// to track size/count of descendant transactions. First version of

0 commit comments

Comments
 (0)