diff options
author | Pieter Wuille <pieter@wuille.net> | 2021-06-25 10:30:08 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-06-25 10:42:05 -0700 |
commit | 6cf4ea71878c0a83f2e49831e4dfa119c53761b7 (patch) | |
tree | ef54cda01e43c477b61418b9fb57c026edb5bb7b /src/script | |
parent | 3e306ee1d5c79eda64eb991fb2696bf530f0b30d (diff) |
Avoid the use of P0083R3 std::set::merge
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/standard.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp index 0fa5e56eb6..b8349bb9ab 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -407,7 +407,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)); + } } } |