refactor: performance-for-range-copy in psbt.h

This commit is contained in:
MarcoFalke 2024-06-06 11:58:55 +02:00
parent a44b0f771f
commit fab01b5220
No known key found for this signature in database

View File

@ -237,7 +237,7 @@ struct PSBTInput
if (final_script_sig.empty() && final_script_witness.IsNull()) {
// Write any partial signatures
for (auto sig_pair : partial_sigs) {
for (const auto& sig_pair : partial_sigs) {
SerializeToVector(s, CompactSizeWriter(PSBT_IN_PARTIAL_SIG), Span{sig_pair.second.first});
s << sig_pair.second.second;
}