aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorLőrinc <pap.lorinc@gmail.com>2024-11-17 13:53:35 +0100
committerLőrinc <pap.lorinc@gmail.com>2024-11-25 20:09:44 +0100
commita774c7a339c26b1409c9a9572d2b52810ee64062 (patch)
treec05a7971999b2652bad609adfad7197301c571c1 /src/rpc
parent2638fdb4f934be96b7c798dbac38ea5ab8a6374a (diff)
refactor: Fix remaining clang-tidy performance-inefficient-vector errors
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/output_script.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/output_script.cpp b/src/rpc/output_script.cpp
index 49f3a81243..5de2847be9 100644
--- a/src/rpc/output_script.cpp
+++ b/src/rpc/output_script.cpp
@@ -123,6 +123,7 @@ static RPCHelpMan createmultisig()
// Get the public keys
const UniValue& keys = request.params[1].get_array();
std::vector<CPubKey> pubkeys;
+ pubkeys.reserve(keys.size());
for (unsigned int i = 0; i < keys.size(); ++i) {
pubkeys.push_back(HexToPubKey(keys[i].get_str()));
}