mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Make CHash256/CHash160 output to Span
This commit is contained in:
parent
0ef97b1b10
commit
02c4cc5c5d
13 changed files with 28 additions and 26 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue