mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
Cast 8-vector of u32 to u256
This commit is contained in:
parent
1cab3e87f3
commit
897e6458ce
@ -145,7 +145,7 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY.
|
||||
// If the argument was not 32 bytes, treat as OP_NOP4:
|
||||
switch (stack.back().size()) {
|
||||
case 32:
|
||||
if (!checker.CheckDefaultCheckTemplateVerifyHash(stack.back())) {
|
||||
if (!checker.CheckDefaultCheckTemplateVerifyHash(u256(stack.back()))) {
|
||||
return set_error(serror, SCRIPT_ERR_TEMPLATE_MISMATCH);
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user