mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-05-17 23:56:39 +00:00
Fix unsigned integer overflow in LoadMempool
This commit is contained in:
parent
133f73e86b
commit
fadcd03139
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user