diff options
author | fanquake <fanquake@gmail.com> | 2021-04-13 19:41:50 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-04-13 20:09:34 +0800 |
commit | 9e0b199b976617edeb1c58d4203df5f83a26c1e3 (patch) | |
tree | 484cc9e0faf1146d4e3d9d15d7518575c51ed53e /src/rpc | |
parent | aaa4e5a45bd9ec5563ffa7b9e0d46d2de3cb9242 (diff) |
external_signer: use const where appropriate
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/external_signer.cpp | 4 |
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); |