Skip to content

Commit 1904334

Browse files
authored
Merge pull request bitcoin#1226 from OrfeasLitos/define-check-119
Define BIP-119 CheckDefaultCheckTemplateVerifyHash
2 parents d36ee99 + 3ff4a4c commit 1904334

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bip-0119.mediawiki

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY.
167167
}
168168
break;
169169
170+
Where
171+
172+
bool CheckDefaultCheckTemplateVerifyHash(const std::vector<unsigned char>& hash) {
173+
return GetDefaultCheckTemplateVerifyHash(current_tx, current_input_index) == uint256(hash);
174+
}
175+
170176
The hash is computed as follows:
171177

172178
uint256 GetDefaultCheckTemplateVerifyHash(const CTransaction& tx, uint32_t input_index) {

0 commit comments

Comments
 (0)