mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 04:12:36 -03:00
Fix unsigned integer overflow in LoadMempool
This commit is contained in:
parent
133f73e86b
commit
fadcd03139
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue