Fix unsigned integer overflow in LoadMempool

This commit is contained in:
MarcoFalke committed 2022-02-01 19:40:58 +01:00
1 parent 133f73e86b
commit fadcd03139
1 file changed
+2 -1
+2 -1
View File
@@ -4493,7 +4493,8 @@ bool LoadMempool(CTxMemPool& pool, CChainState& active_chainstate, FopenFn mocka
} }
uint64_t num; uint64_t num;
file >> num; file >> num;
while (num--) { while (num) {
--num;
CTransactionRef tx; CTransactionRef tx;
int64_t nTime; int64_t nTime;
int64_t nFeeDelta; int64_t nFeeDelta;