Skip to content

Commit

Permalink
refactor: performance-for-range-copy in psbt.h
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Jun 9, 2024
1 parent a44b0f7 commit fab01b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psbt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fab01b5

Please sign in to comment.