|
|
@ -328,7 +328,7 @@ private: |
|
|
|
int nHashType; |
|
|
|
int nHashType; |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
CScriptCheck() {} |
|
|
|
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(const CCoins& txFromIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn, int nHashTypeIn) : |
|
|
|
scriptPubKey(txFromIn.vout[txToIn.vin[nInIn].prevout.n].scriptPubKey), |
|
|
|
scriptPubKey(txFromIn.vout[txToIn.vin[nInIn].prevout.n].scriptPubKey), |
|
|
|
ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), nHashType(nHashTypeIn) { } |
|
|
|
ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), nHashType(nHashTypeIn) { } |
|
|
@ -876,7 +876,7 @@ private: |
|
|
|
unsigned char chRejectCode; |
|
|
|
unsigned char chRejectCode; |
|
|
|
bool corruptionPossible; |
|
|
|
bool corruptionPossible; |
|
|
|
public: |
|
|
|
public: |
|
|
|
CValidationState() : mode(MODE_VALID), nDoS(0), corruptionPossible(false) {} |
|
|
|
CValidationState() : mode(MODE_VALID), nDoS(0), chRejectCode(0), corruptionPossible(false) {} |
|
|
|
bool DoS(int level, bool ret = false, |
|
|
|
bool DoS(int level, bool ret = false, |
|
|
|
unsigned char chRejectCodeIn=0, std::string strRejectReasonIn="", |
|
|
|
unsigned char chRejectCodeIn=0, std::string strRejectReasonIn="", |
|
|
|
bool corruptionIn=false) { |
|
|
|
bool corruptionIn=false) { |
|
|
|