|
|
|
@ -1787,8 +1787,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;
|
|
|
|
|
int res = ApplyTxInUndo(std::move(txundo.vprevout[j]), view, out);
|
|
|
|
|
if (res == DISCONNECT_FAILED) return DISCONNECT_FAILED;
|
|
|
|
|
fClean = fClean && res != DISCONNECT_UNCLEAN;
|
|
|
|
|