Skip to content

Commit

Permalink
Rename out to m_tx_out in CScriptCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
jl2012 authored and random-zebra committed May 9, 2021
1 parent 5f6cd00 commit 2af6794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/validation.cpp
Expand Up @@ -1071,7 +1071,7 @@ void UpdateCoins(const CTransaction& tx, CCoinsViewCache &inputs, int nHeight, b
bool CScriptCheck::operator()()
{
const CScript& scriptSig = ptxTo->vin[nIn].scriptSig;
return VerifyScript(scriptSig, out.scriptPubKey, nFlags, CachingTransactionSignatureChecker(ptxTo, nIn, out.nValue, cacheStore, *precomTxData), ptxTo->GetRequiredSigVersion(), &error);
return VerifyScript(scriptSig, m_tx_out.scriptPubKey, nFlags, CachingTransactionSignatureChecker(ptxTo, nIn, m_tx_out.nValue, cacheStore, *precomTxData), ptxTo->GetRequiredSigVersion(), &error);
}

int GetSpendHeight(const CCoinsViewCache& inputs)
Expand Down
6 changes: 3 additions & 3 deletions src/validation.h
Expand Up @@ -285,7 +285,7 @@ Optional<int> GetUTXOHeight(const COutPoint& outpoint);
class CScriptCheck
{
private:
CTxOut out;
CTxOut m_tx_out;
const CTransaction* ptxTo;
unsigned int nIn;
unsigned int nFlags;
Expand All @@ -296,7 +296,7 @@ class CScriptCheck
public:
CScriptCheck() : ptxTo(0), nIn(0), nFlags(0), cacheStore(false), error(SCRIPT_ERR_UNKNOWN_ERROR), precomTxData(nullptr) {}
CScriptCheck(const CTxOut& outIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn, bool cacheIn, PrecomputedTransactionData* cachedHashesIn) :
out(outIn),
m_tx_out(outIn),
ptxTo(&txToIn),
nIn(nInIn),
nFlags(nFlagsIn),
Expand All @@ -309,7 +309,7 @@ class CScriptCheck
void swap(CScriptCheck& check)
{
std::swap(ptxTo, check.ptxTo);
std::swap(out, check.out);
std::swap(m_tx_out, check.m_tx_out);
std::swap(nIn, check.nIn);
std::swap(nFlags, check.nFlags);
std::swap(cacheStore, check.cacheStore);
Expand Down

0 comments on commit 2af6794

Please sign in to comment.