Skip to content

Commit 1cab3e8

Browse files
committed
Define BIP-119 CheckDefaultCheckTemplateVerifyHash
1 parent 708ce10 commit 1cab3e8

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
@@ -159,6 +159,12 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY.
159159
}
160160
break;
161161
162+
Where
163+
164+
bool CheckDefaultCheckTemplateVerifyHash(uint256 hash) {
165+
return GetDefaultCheckTemplateVerifyHash(current_tx, current_input_index) == hash;
166+
}
167+
162168
The hash is computed as follows:
163169

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

0 commit comments

Comments
 (0)