aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorjtimon <jtimon@monetize.io>2014-07-18 16:51:33 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-09-12 20:03:03 +0200
commitce3649fb61b2b421aa4e36ab107e5f2f9838378b (patch)
tree7b1a263ed4dde0c317b010e08df14e361796e68d /src/main.h
parent358562b65189dce982ad30a1c158606a540e9bcb (diff)
Remove CScriptCheck::nHashType (was always 0)
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.h b/src/main.h
index f7682c213c..2ec1691471 100644
--- a/src/main.h
+++ b/src/main.h
@@ -340,13 +340,12 @@ private:
const CTransaction *ptxTo;
unsigned int nIn;
unsigned int nFlags;
- int nHashType;
public:
- CScriptCheck(): ptxTo(0), nIn(0), nFlags(0), nHashType(0) {}
- CScriptCheck(const CCoins& txFromIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn, int nHashTypeIn) :
+ CScriptCheck(): ptxTo(0), nIn(0), nFlags(0) {}
+ CScriptCheck(const CCoins& txFromIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn) :
scriptPubKey(txFromIn.vout[txToIn.vin[nInIn].prevout.n].scriptPubKey),
- ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), nHashType(nHashTypeIn) { }
+ ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn) { }
bool operator()() const;
@@ -355,7 +354,6 @@ public:
std::swap(ptxTo, check.ptxTo);
std::swap(nIn, check.nIn);
std::swap(nFlags, check.nFlags);
- std::swap(nHashType, check.nHashType);
}
};