mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge 8ac79973f8 into merged_master (Bitcoin PR bitcoin/bitcoin#24196)
This commit is contained in:
commit
9de9d8ac60
2 changed files with 3 additions and 3 deletions
|
|
@ -1924,8 +1924,9 @@ DisconnectResult CChainState::DisconnectBlock(const CBlock& block, const CBlockI
|
|||
error("DisconnectBlock(): transaction and undo data inconsistent");
|
||||
return DISCONNECT_FAILED;
|
||||
}
|
||||
for (unsigned int j = tx.vin.size(); j-- > 0;) {
|
||||
const COutPoint &out = tx.vin[j].prevout;
|
||||
for (unsigned int j = tx.vin.size(); j > 0;) {
|
||||
--j;
|
||||
const COutPoint& out = tx.vin[j].prevout;
|
||||
const CScriptWitness& pegin_wit = tx.witness.vtxinwit.size() > j ? tx.witness.vtxinwit[j].m_pegin_witness : CScriptWitness();
|
||||
int res = ApplyTxInUndo(std::move(txundo.vprevout[j]), view, out, tx.vin[j], pegin_wit, fedpegscripts);
|
||||
if (res == DISCONNECT_FAILED) return DISCONNECT_FAILED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue