Fix unsigned integer overflow in LoadMempool

This commit is contained in:
MarcoFalke 2022-02-01 16:08:57 +01:00
parent 133f73e86b
commit fadcd03139
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -4493,7 +4493,8 @@ bool LoadMempool(CTxMemPool& pool, CChainState& active_chainstate, FopenFn mocka
}
uint64_t num;
file >> num;
while (num--) {
while (num) {
--num;
CTransactionRef tx;
int64_t nTime;
int64_t nFeeDelta;