diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-06-18 17:19:46 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-07-30 13:57:54 -0700 |
commit | 02c4cc5c5ddf61f98ee366a4bea8abc26de492bd (patch) | |
tree | 71a25d64248ffeac24259ddbe328481e9125020d /src/script/interpreter.cpp | |
parent | 0ef97b1b103231db54e04a64bbdb5dcc3f34f482 (diff) |
Make CHash256/CHash160 output to Span
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 a1fcb41130..39feb4ccc9 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); } |