mirror of
https://github.com/bitcoin/bips.git
synced 2025-07-07 14:01:27 +02:00
Merge pull request #1226 from OrfeasLitos/define-check-119
Define BIP-119 CheckDefaultCheckTemplateVerifyHash
This commit is contained in:
@ -167,6 +167,12 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY.
|
||||
}
|
||||
break;
|
||||
|
||||
Where
|
||||
|
||||
bool CheckDefaultCheckTemplateVerifyHash(const std::vector<unsigned char>& hash) {
|
||||
return GetDefaultCheckTemplateVerifyHash(current_tx, current_input_index) == uint256(hash);
|
||||
}
|
||||
|
||||
The hash is computed as follows:
|
||||
|
||||
uint256 GetDefaultCheckTemplateVerifyHash(const CTransaction& tx, uint32_t input_index) {
|
||||
|
Reference in New Issue
Block a user