We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e306ee commit 6cf4ea7Copy full SHA for 6cf4ea7
src/script/standard.cpp
@@ -407,7 +407,13 @@ void TaprootSpendData::Merge(TaprootSpendData other)
407
merkle_root = other.merkle_root;
408
}
409
for (auto& [key, control_blocks] : other.scripts) {
410
- scripts[key].merge(std::move(control_blocks));
+ // Once P0083R3 is supported by all our targeted platforms,
411
+ // this loop body can be replaced with:
412
+ // scripts[key].merge(std::move(control_blocks));
413
+ auto& target = scripts[key];
414
+ for (auto& control_block: control_blocks) {
415
+ target.insert(std::move(control_block));
416
+ }
417
418
419
0 commit comments