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.
145145 // If the argument was not 32 bytes, treat as OP_NOP4:
146146 switch (stack.back().size()) {
147147 case 32:
148- if (!checker.CheckDefaultCheckTemplateVerifyHash(uint256( stack.back() ))) {
148+ if (!checker.CheckDefaultCheckTemplateVerifyHash(stack.back())) {
149149 return set_error(serror, SCRIPT_ERR_TEMPLATE_MISMATCH);
150150 }
151151 break;
@@ -161,8 +161,8 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY.
161161
162162Where
163163
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) ;
166166 }
167167
168168The hash is computed as follows:
You can’t perform that action at this time.
0 commit comments