|
|
@ -1684,7 +1684,7 @@ void static InvalidBlockFound(CBlockIndex *pindex, const CValidationState &state |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void UpdateCoins(const CTransaction& tx, CValidationState &state, CCoinsViewCache &inputs, CTxUndo &txundo, int nHeight) |
|
|
|
void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, CTxUndo &txundo, int nHeight) |
|
|
|
{ |
|
|
|
// mark inputs spent
|
|
|
|
if (!tx.IsCoinBase()) { |
|
|
@ -1718,10 +1718,10 @@ void UpdateCoins(const CTransaction& tx, CValidationState &state, CCoinsViewCach |
|
|
|
inputs.ModifyCoins(tx.GetHash())->FromTx(tx, nHeight); |
|
|
|
} |
|
|
|
|
|
|
|
void UpdateCoins(const CTransaction& tx, CValidationState &state, CCoinsViewCache &inputs, int nHeight) |
|
|
|
void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, int nHeight) |
|
|
|
{ |
|
|
|
CTxUndo txundo; |
|
|
|
UpdateCoins(tx, state, inputs, txundo, nHeight); |
|
|
|
UpdateCoins(tx, inputs, txundo, nHeight); |
|
|
|
} |
|
|
|
|
|
|
|
bool CScriptCheck::operator()() { |
|
|
@ -2278,7 +2278,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin |
|
|
|
if (i > 0) { |
|
|
|
blockundo.vtxundo.push_back(CTxUndo()); |
|
|
|
} |
|
|
|
UpdateCoins(tx, state, view, i == 0 ? undoDummy : blockundo.vtxundo.back(), pindex->nHeight); |
|
|
|
UpdateCoins(tx, view, i == 0 ? undoDummy : blockundo.vtxundo.back(), pindex->nHeight); |
|
|
|
|
|
|
|
BOOST_FOREACH(const JSDescription &joinsplit, tx.vjoinsplit) { |
|
|
|
BOOST_FOREACH(const uint256 ¬e_commitment, joinsplit.commitments) { |
|
|
|