File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY.
145
145
// If the argument was not 32 bytes, treat as OP_NOP4:
146
146
switch (stack.back().size()) {
147
147
case 32:
148
- if (!checker.CheckDefaultCheckTemplateVerifyHash(uint256( stack.back() ))) {
148
+ if (!checker.CheckDefaultCheckTemplateVerifyHash(stack.back())) {
149
149
return set_error(serror, SCRIPT_ERR_TEMPLATE_MISMATCH);
150
150
}
151
151
break;
@@ -161,8 +161,8 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY.
161
161
162
162
Where
163
163
164
- bool CheckDefaultCheckTemplateVerifyHash(uint256 hash) {
165
- return GetDefaultCheckTemplateVerifyHash(current_tx, current_input_index) == hash;
164
+ bool CheckDefaultCheckTemplateVerifyHash(const std::vector<unsigned char>& hash) {
165
+ return GetDefaultCheckTemplateVerifyHash(current_tx, current_input_index) == uint256( hash) ;
166
166
}
167
167
168
168
The hash is computed as follows:
You can’t perform that action at this time.
0 commit comments