Skip to content

Commit 3a131b7

Browse files
committed
Rename out to m_tx_out in CScriptCheck
1 parent e912118 commit 3a131b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, int nHeight)
12021202
bool CScriptCheck::operator()() {
12031203
const CScript &scriptSig = ptxTo->vin[nIn].scriptSig;
12041204
const CScriptWitness *witness = &ptxTo->vin[nIn].scriptWitness;
1205-
return VerifyScript(scriptSig, out.scriptPubKey, witness, nFlags, CachingTransactionSignatureChecker(ptxTo, nIn, out.nValue, cacheStore, *txdata), &error);
1205+
return VerifyScript(scriptSig, m_tx_out.scriptPubKey, witness, nFlags, CachingTransactionSignatureChecker(ptxTo, nIn, m_tx_out.nValue, cacheStore, *txdata), &error);
12061206
}
12071207

12081208
int GetSpendHeight(const CCoinsViewCache& inputs)

src/validation.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ bool CheckSequenceLocks(const CTransaction &tx, int flags, LockPoints* lp = null
355355
class CScriptCheck
356356
{
357357
private:
358-
CTxOut out;
358+
CTxOut m_tx_out;
359359
const CTransaction *ptxTo;
360360
unsigned int nIn;
361361
unsigned int nFlags;
@@ -366,13 +366,13 @@ class CScriptCheck
366366
public:
367367
CScriptCheck(): ptxTo(nullptr), nIn(0), nFlags(0), cacheStore(false), error(SCRIPT_ERR_UNKNOWN_ERROR) {}
368368
CScriptCheck(const CTxOut& outIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn, bool cacheIn, PrecomputedTransactionData* txdataIn) :
369-
out(outIn), ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), cacheStore(cacheIn), error(SCRIPT_ERR_UNKNOWN_ERROR), txdata(txdataIn) { }
369+
m_tx_out(outIn), ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), cacheStore(cacheIn), error(SCRIPT_ERR_UNKNOWN_ERROR), txdata(txdataIn) { }
370370

371371
bool operator()();
372372

373373
void swap(CScriptCheck &check) {
374374
std::swap(ptxTo, check.ptxTo);
375-
std::swap(out, check.out);
375+
std::swap(m_tx_out, check.m_tx_out);
376376
std::swap(nIn, check.nIn);
377377
std::swap(nFlags, check.nFlags);
378378
std::swap(cacheStore, check.cacheStore);

0 commit comments

Comments
 (0)