mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 9c3751a0c9 into merged_master (Bitcoin PR bitcoin/bitcoin#22342)
This commit is contained in:
commit
a523f13fc5
1 changed files with 7 additions and 1 deletions
|
|
@ -441,7 +441,13 @@ void TaprootSpendData::Merge(TaprootSpendData other)
|
|||
merkle_root = other.merkle_root;
|
||||
}
|
||||
for (auto& [key, control_blocks] : other.scripts) {
|
||||
scripts[key].merge(std::move(control_blocks));
|
||||
// Once P0083R3 is supported by all our targeted platforms,
|
||||
// this loop body can be replaced with:
|
||||
// scripts[key].merge(std::move(control_blocks));
|
||||
auto& target = scripts[key];
|
||||
for (auto& control_block: control_blocks) {
|
||||
target.insert(std::move(control_block));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue