aboutsummaryrefslogtreecommitdiff
path: root/src/script/interpreter.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2020-06-18 17:19:46 -0700
committerPieter Wuille <[email protected]>2020-07-30 13:57:54 -0700
commit02c4cc5c5ddf61f98ee366a4bea8abc26de492bd (patch)
tree71a25d64248ffeac24259ddbe328481e9125020d /src/script/interpreter.cpp
parentMake MurmurHash3 consume Spans (diff)
downloaddiscoin-02c4cc5c5ddf61f98ee366a4bea8abc26de492bd.tar.xz
discoin-02c4cc5c5ddf61f98ee366a4bea8abc26de492bd.zip
Make CHash256/CHash160 output to Span
Diffstat (limited to 'src/script/interpreter.cpp')
-rw-r--r--src/script/interpreter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp
index a1fcb4113..39feb4ccc 100644
--- a/src/script/interpreter.cpp
+++ b/src/script/interpreter.cpp
@@ -986,9 +986,9 @@ bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript&
else if (opcode == OP_SHA256)
CSHA256().Write(vch.data(), vch.size()).Finalize(vchHash.data());
else if (opcode == OP_HASH160)
- CHash160().Write(vch).Finalize(vchHash.data());
+ CHash160().Write(vch).Finalize(vchHash);
else if (opcode == OP_HASH256)
- CHash256().Write(vch).Finalize(vchHash.data());
+ CHash256().Write(vch).Finalize(vchHash);
popstack(stack);
stack.push_back(vchHash);
}