mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
ATMP: Remove assertion from state mutation
This commit is contained in:
parent
8cc75c7f00
commit
a17f01014d
1 changed files with 3 additions and 1 deletions
|
|
@ -1569,7 +1569,9 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C
|
|||
BOOST_FOREACH(const CTxIn &txin, tx.vin)
|
||||
{
|
||||
CCoins coins;
|
||||
assert(view.GetCoins(txin.prevout.hash, coins));
|
||||
bool ret;
|
||||
ret = view.GetCoins(txin.prevout.hash, coins);
|
||||
assert(ret);
|
||||
if (coins.vout[txin.prevout.n].scriptPubKey.IsWithdrawLock() && txin.scriptSig.IsWithdrawProof()) {
|
||||
if (pool.mapNextTx.count(txin.prevout))
|
||||
return state.Invalid(false, REJECT_CONFLICT, "txn-mempool-replace-withdraw");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue