mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
psbt: Only include m_tap_tree if it has scripts
This commit is contained in:
parent
0577d423ad
commit
30ff25cf37
2 changed files with 3 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ void PSBTOutput::FromSignatureData(const SignatureData& sigdata)
|
|||
if (!sigdata.tr_spenddata.internal_key.IsNull()) {
|
||||
m_tap_internal_key = sigdata.tr_spenddata.internal_key;
|
||||
}
|
||||
if (sigdata.tr_builder.has_value()) {
|
||||
if (sigdata.tr_builder.has_value() && sigdata.tr_builder->HasScripts()) {
|
||||
m_tap_tree = sigdata.tr_builder->GetTreeTuples();
|
||||
}
|
||||
for (const auto& [pubkey, leaf_origin] : sigdata.taproot_misc_pubkeys) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue