mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-05 04:31:45 +02:00
Revert "Avoid the use of P0083R3 std::set::merge"
This reverts commit 6cf4ea71878c0a83f2e49831e4dfa119c53761b7.
This commit is contained in:
parent
fab53b5fd4
commit
fae20e6b50
@ -366,13 +366,7 @@ void TaprootSpendData::Merge(TaprootSpendData other)
|
||||
merkle_root = other.merkle_root;
|
||||
}
|
||||
for (auto& [key, control_blocks] : other.scripts) {
|
||||
// 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));
|
||||
}
|
||||
scripts[key].merge(std::move(control_blocks));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user