aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-06-06 11:58:55 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-06-09 13:07:35 +0200
commitfab01b5220c28a334b451ed9625bd3914c48e6af (patch)
tree964951e6bec071994b77341f1f49ad9bb204ec28
parenta44b0f771f2130b89b608f39055a355693c91a8c (diff)
downloadbitcoin-fab01b5220c28a334b451ed9625bd3914c48e6af.tar.xz
refactor: performance-for-range-copy in psbt.h
-rw-r--r--src/psbt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/psbt.h b/src/psbt.h
index 3f74083717..f415d21484 100644
--- a/src/psbt.h
+++ b/src/psbt.h
@@ -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;
}