diff options
| author | Pieter Wuille <[email protected]> | 2017-07-07 00:54:42 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-07-07 10:45:31 -0700 |
| commit | 0aadc11fd88b298c7af2dfb69763b2c67dc6b7b0 (patch) | |
| tree | 02bb833749f472a916c9ff5f585af9e94b5326b8 /src/script/interpreter.cpp | |
| parent | Merge #10698: Be consistent in calling transactions "replaceable" for Opt-In RBF (diff) | |
| download | discoin-0aadc11fd88b298c7af2dfb69763b2c67dc6b7b0.tar.xz discoin-0aadc11fd88b298c7af2dfb69763b2c67dc6b7b0.zip | |
Avoid dereference-of-casted-pointer
Diffstat (limited to 'src/script/interpreter.cpp')
| -rw-r--r-- | src/script/interpreter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index 7149c938f..8a121774a 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -1099,7 +1099,7 @@ public: // Serialize the script if (nInput != nIn) // Blank out other inputs' signatures - ::Serialize(s, CScriptBase()); + ::Serialize(s, CScript()); else SerializeScriptCode(s); // Serialize the nSequence @@ -1207,7 +1207,7 @@ uint256 SignatureHash(const CScript& scriptCode, const CTransaction& txTo, unsig // The prevout may already be contained in hashPrevout, and the nSequence // may already be contain in hashSequence. ss << txTo.vin[nIn].prevout; - ss << static_cast<const CScriptBase&>(scriptCode); + ss << scriptCode; ss << amount; ss << txTo.vin[nIn].nSequence; // Outputs (none/one/all, depending on flags) |