mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
ATMP: Remove assertion from state mutation
This commit is contained in:
parent
a93c0279bf
commit
d650674bca
1 changed files with 3 additions and 1 deletions
|
|
@ -996,7 +996,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()) {
|
||||
std::pair<uint256, COutPoint> outpoint = std::make_pair(coins.vout[txin.prevout.n].scriptPubKey.GetWithdrawLockGenesisHash(), txin.scriptSig.GetWithdrawSpent());
|
||||
if (pool.mapNextTx.count(txin.prevout))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue