mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 19:23:26 -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;
|
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…
Add table
Reference in a new issue