|
|
|
@ -355,7 +355,7 @@ bool CheckSequenceLocks(const CTransaction &tx, int flags, LockPoints* lp = null
@@ -355,7 +355,7 @@ bool CheckSequenceLocks(const CTransaction &tx, int flags, LockPoints* lp = null
|
|
|
|
|
class CScriptCheck |
|
|
|
|
{ |
|
|
|
|
private: |
|
|
|
|
CTxOut out; |
|
|
|
|
CTxOut m_tx_out; |
|
|
|
|
const CTransaction *ptxTo; |
|
|
|
|
unsigned int nIn; |
|
|
|
|
unsigned int nFlags; |
|
|
|
@ -366,13 +366,13 @@ private:
@@ -366,13 +366,13 @@ private:
|
|
|
|
|
public: |
|
|
|
|
CScriptCheck(): ptxTo(nullptr), nIn(0), nFlags(0), cacheStore(false), error(SCRIPT_ERR_UNKNOWN_ERROR) {} |
|
|
|
|
CScriptCheck(const CTxOut& outIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn, bool cacheIn, PrecomputedTransactionData* txdataIn) : |
|
|
|
|
out(outIn), ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), cacheStore(cacheIn), error(SCRIPT_ERR_UNKNOWN_ERROR), txdata(txdataIn) { } |
|
|
|
|
m_tx_out(outIn), ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), cacheStore(cacheIn), error(SCRIPT_ERR_UNKNOWN_ERROR), txdata(txdataIn) { } |
|
|
|
|
|
|
|
|
|
bool operator()(); |
|
|
|
|
|
|
|
|
|
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); |
|
|
|
|