diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-12-27 04:06:27 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-12-27 04:06:48 +0100 |
| commit | 3c9daa2f241cf21ea3498cc2f1b3ff60ea860f67 (patch) | |
| tree | dddfac56a964994772ec72810c65869a4975932b /src/script/standard.cpp | |
| parent | Merge pull request #5512 (diff) | |
| parent | Fix CScriptID(const CScript& in) in empty script case (diff) | |
| download | discoin-3c9daa2f241cf21ea3498cc2f1b3ff60ea860f67.tar.xz discoin-3c9daa2f241cf21ea3498cc2f1b3ff60ea860f67.zip | |
Merge pull request #5541
d78f0da Fix CScriptID(const CScript& in) in empty script case (Peter Todd)
Diffstat (limited to 'src/script/standard.cpp')
| -rw-r--r-- | src/script/standard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp index d0e225004..ce50e3aad 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -18,7 +18,7 @@ typedef vector<unsigned char> valtype; unsigned nMaxDatacarrierBytes = MAX_OP_RETURN_RELAY; -CScriptID::CScriptID(const CScript& in) : uint160(in.size() ? Hash160(in.begin(), in.end()) : 0) {} +CScriptID::CScriptID(const CScript& in) : uint160(Hash160(in.begin(), in.end())) {} const char* GetTxnOutputType(txnouttype t) { |