diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-08-16 15:26:19 -0400 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-10-13 23:45:36 +0800 |
commit | 4d42c3a2401c63084bf94433609240daa366753e (patch) | |
tree | 1079545b13ab823f96cc0281d49b1585e1e7965a /src/psbt.cpp | |
parent | d810fde8ea64b71567f8b50895ac76bcb7afbfbc (diff) |
psbt: Only include m_tap_tree if it has scripts
Github-Pull: #25858
Rebased-From: 30ff25cf37eec4b09ab40424eb5d6a4a80410955
Diffstat (limited to 'src/psbt.cpp')
-rw-r--r-- | src/psbt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/psbt.cpp b/src/psbt.cpp index 6c6ea6a555..cbf2f88788 100644 --- a/src/psbt.cpp +++ b/src/psbt.cpp @@ -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) { |