Return the correct `LeafVersion` when building a Taproot `ControlBlock`
This commit is contained in:
parent
5aabd6371e
commit
0af5a433b6
|
@ -337,7 +337,7 @@ impl TaprootSpendInfo {
|
|||
Some(ControlBlock {
|
||||
internal_key: self.internal_key,
|
||||
output_key_parity: self.output_key_parity,
|
||||
leaf_version: LeafVersion::default(),
|
||||
leaf_version: script_ver.1,
|
||||
merkle_branch: smallest.clone(),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue