Skip to content

Commit fab01b5

Browse files
author
MarcoFalke
committed
refactor: performance-for-range-copy in psbt.h
1 parent a44b0f7 commit fab01b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/psbt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ struct PSBTInput
237237

238238
if (final_script_sig.empty() && final_script_witness.IsNull()) {
239239
// Write any partial signatures
240-
for (auto sig_pair : partial_sigs) {
240+
for (const auto& sig_pair : partial_sigs) {
241241
SerializeToVector(s, CompactSizeWriter(PSBT_IN_PARTIAL_SIG), Span{sig_pair.second.first});
242242
s << sig_pair.second.second;
243243
}

0 commit comments

Comments
 (0)