aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/external_signer.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-04-13 19:41:50 +0800
committerfanquake <fanquake@gmail.com>2021-04-13 20:09:34 +0800
commit9e0b199b976617edeb1c58d4203df5f83a26c1e3 (patch)
tree484cc9e0faf1146d4e3d9d15d7518575c51ed53e /src/rpc/external_signer.cpp
parentaaa4e5a45bd9ec5563ffa7b9e0d46d2de3cb9242 (diff)
downloadbitcoin-9e0b199b976617edeb1c58d4203df5f83a26c1e3.tar.xz
external_signer: use const where appropriate
Diffstat (limited to 'src/rpc/external_signer.cpp')
-rw-r--r--src/rpc/external_signer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/external_signer.cpp b/src/rpc/external_signer.cpp
index 05d4ce2c91..08aa8d8dcb 100644
--- a/src/rpc/external_signer.cpp
+++ b/src/rpc/external_signer.cpp
@@ -38,12 +38,12 @@ static RPCHelpMan enumeratesigners()
{
const std::string command = gArgs.GetArg("-signer", "");
if (command == "") throw JSONRPCError(RPC_MISC_ERROR, "Error: restart bitcoind with -signer=<cmd>");
- std::string chain = gArgs.GetChainName();
+ const std::string chain = gArgs.GetChainName();
UniValue signers_res = UniValue::VARR;
try {
std::vector<ExternalSigner> signers;
ExternalSigner::Enumerate(command, signers, chain);
- for (ExternalSigner signer : signers) {
+ for (const ExternalSigner& signer : signers) {
UniValue signer_res = UniValue::VOBJ;
signer_res.pushKV("fingerprint", signer.m_fingerprint);
signer_res.pushKV("name", signer.m_name);