diff --git a/bip-0119.mediawiki b/bip-0119.mediawiki index 658764df..b407fabc 100644 --- a/bip-0119.mediawiki +++ b/bip-0119.mediawiki @@ -159,6 +159,12 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY. } break; +Where + + bool CheckDefaultCheckTemplateVerifyHash(uint256 hash) { + return GetDefaultCheckTemplateVerifyHash(current_tx, current_input_index) == hash; + } + The hash is computed as follows: uint256 GetDefaultCheckTemplateVerifyHash(const CTransaction& tx, uint32_t input_index) {