diff options
author | fanquake <fanquake@gmail.com> | 2021-12-14 10:09:42 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-12-14 10:09:42 +0800 |
commit | eca159c305c1ff3d9b806755026a23bf2aad9a48 (patch) | |
tree | 2e835d221c19b1e2f7c17275cc1de45bc861111e /src/rpc/misc.cpp | |
parent | 5dd28e5cff8a8177b969181ecb58d045e7f80a72 (diff) | |
download | bitcoin-eca159c305c1ff3d9b806755026a23bf2aad9a48.tar.xz |
refactor: remove unneeded calls to strprintf()
Diffstat (limited to 'src/rpc/misc.cpp')
-rw-r--r-- | src/rpc/misc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index 2761c69167..7705051df9 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -286,13 +286,13 @@ static RPCHelpMan deriveaddresses() FlatSigningProvider provider; std::vector<CScript> scripts; if (!desc->Expand(i, key_provider, scripts, provider)) { - throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Cannot derive script without private keys")); + throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Cannot derive script without private keys"); } for (const CScript &script : scripts) { CTxDestination dest; if (!ExtractDestination(script, dest)) { - throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Descriptor does not have a corresponding address")); + throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Descriptor does not have a corresponding address"); } addresses.push_back(EncodeDestination(dest)); |