diff options
| author | jtimon <[email protected]> | 2014-10-27 16:07:50 +0100 |
|---|---|---|
| committer | jtimon <[email protected]> | 2014-12-27 16:01:12 +0100 |
| commit | d7621ccf9d064db19de742ed1a0ac59fffa06c0d (patch) | |
| tree | 99bd104ad829f2a03efa7119c472e03ab2eea479 /src/main.cpp | |
| parent | Decouple CCoins from CTxInUndo (diff) | |
| download | discoin-d7621ccf9d064db19de742ed1a0ac59fffa06c0d.tar.xz discoin-d7621ccf9d064db19de742ed1a0ac59fffa06c0d.zip | |
Decouple miner.o and txmempool.o from CTxUndo
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3f775e3d3..bcd3a5ff0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1404,6 +1404,12 @@ 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) +{ + CTxUndo txundo; + UpdateCoins(tx, state, inputs, txundo, nHeight); +} + bool CScriptCheck::operator()() { const CScript &scriptSig = ptxTo->vin[nIn].scriptSig; if (!VerifyScript(scriptSig, scriptPubKey, nFlags, CachingSignatureChecker(*ptxTo, nIn, cacheStore), &error)) { |