Skip to content

Commit fadbc5d

Browse files
committed
mempool: remove unused magic number from consistency check
1 parent 277abed commit fadbc5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/txmempool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ static void CheckInputsAndUpdateCoins(const CTransaction& tx, CCoinsViewCache& m
601601
CAmount txfee = 0;
602602
bool fCheckResult = tx.IsCoinBase() || Consensus::CheckTxInputs(tx, state, mempoolDuplicate, spendheight, txfee);
603603
assert(fCheckResult);
604-
UpdateCoins(tx, mempoolDuplicate, 1000000);
604+
UpdateCoins(tx, mempoolDuplicate, std::numeric_limits<int>::max());
605605
}
606606

607607
void CTxMemPool::check(const CCoinsViewCache *pcoins) const

0 commit comments

Comments
 (0)