mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-30 13:07:32 -03:00
psbt: Fix merging of m_tap_tree
Merging should be checking that the current PSBTOutput doesn't have a
taptree and the other one's is copied over. The original merging had
this inverted and would remove m_tap_tree if the other did not have it.
Github-Pull: #25858
Rebased-From: 7df6e1bb77
This commit is contained in:
parent
1390c96c8e
commit
4abd2ab18e
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ void PSBTOutput::Merge(const PSBTOutput& output)
|
||||||
if (redeem_script.empty() && !output.redeem_script.empty()) redeem_script = output.redeem_script;
|
if (redeem_script.empty() && !output.redeem_script.empty()) redeem_script = output.redeem_script;
|
||||||
if (witness_script.empty() && !output.witness_script.empty()) witness_script = output.witness_script;
|
if (witness_script.empty() && !output.witness_script.empty()) witness_script = output.witness_script;
|
||||||
if (m_tap_internal_key.IsNull() && !output.m_tap_internal_key.IsNull()) m_tap_internal_key = output.m_tap_internal_key;
|
if (m_tap_internal_key.IsNull() && !output.m_tap_internal_key.IsNull()) m_tap_internal_key = output.m_tap_internal_key;
|
||||||
if (m_tap_tree.has_value() && !output.m_tap_tree.has_value()) m_tap_tree = output.m_tap_tree;
|
if (!m_tap_tree.has_value() && output.m_tap_tree.has_value()) m_tap_tree = output.m_tap_tree;
|
||||||
}
|
}
|
||||||
bool PSBTInputSigned(const PSBTInput& input)
|
bool PSBTInputSigned(const PSBTInput& input)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue