Skip to content

Commit 1cef905

Browse files
siparandom-zebra
authored andcommitted
Make -checkmempool=1 not fail through int32 overflow
1 parent 0f72ff2 commit 1cef905

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
@@ -401,7 +401,7 @@ class CTxMemPool
401401
* check does nothing.
402402
*/
403403
void check(const CCoinsViewCache *pcoins) const;
404-
void setSanityCheck(double dFrequency = 1.0) { nCheckFrequency = dFrequency * 4294967296.0; }
404+
void setSanityCheck(double dFrequency = 1.0) { nCheckFrequency = dFrequency * 4294967295.0; }
405405

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

0 commit comments

Comments
 (0)