mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
Define BIP-119 CheckDefaultCheckTemplateVerifyHash
This commit is contained in:
parent
708ce10bbc
commit
1cab3e87f3
@ -159,6 +159,12 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY.
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Where
|
||||||
|
|
||||||
|
bool CheckDefaultCheckTemplateVerifyHash(uint256 hash) {
|
||||||
|
return GetDefaultCheckTemplateVerifyHash(current_tx, current_input_index) == hash;
|
||||||
|
}
|
||||||
|
|
||||||
The hash is computed as follows:
|
The hash is computed as follows:
|
||||||
|
|
||||||
uint256 GetDefaultCheckTemplateVerifyHash(const CTransaction& tx, uint32_t input_index) {
|
uint256 GetDefaultCheckTemplateVerifyHash(const CTransaction& tx, uint32_t input_index) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user