mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
consensus, refactor: Avoid CScriptCheck::swap in CheckInputScripts
This commit is contained in:
@@ -322,6 +322,11 @@ public:
|
||||
CScriptCheck(const CTxOut& outIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn, bool cacheIn, PrecomputedTransactionData* txdataIn) :
|
||||
m_tx_out(outIn), ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), cacheStore(cacheIn), error(SCRIPT_ERR_UNKNOWN_ERROR), txdata(txdataIn) { }
|
||||
|
||||
CScriptCheck(const CScriptCheck&) = delete;
|
||||
CScriptCheck& operator=(const CScriptCheck&) = delete;
|
||||
CScriptCheck(CScriptCheck&&) = default;
|
||||
CScriptCheck& operator=(CScriptCheck&&) = default;
|
||||
|
||||
bool operator()();
|
||||
|
||||
void swap(CScriptCheck& check) noexcept
|
||||
|
||||
Reference in New Issue
Block a user