aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2021-03-11 15:15:14 +0100
committerSjors Provoost <sjors@sprovoost.nl>2021-03-11 15:15:14 +0100
commit03308b2bfaef5cdf2337a1e8f63edf043d98a7c0 (patch)
treed605c5a9e05e6601f2b906ae6663c232243d0f6c
parente828fc8f528dbb5425c3e3d1c1d4f1485f045241 (diff)
downloadbitcoin-03308b2bfaef5cdf2337a1e8f63edf043d98a7c0.tar.xz
rpc: don't require wallet for enumeratesigners
-rw-r--r--src/wallet/rpcsigner.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wallet/rpcsigner.cpp b/src/wallet/rpcsigner.cpp
index 607b778c68..696c74d665 100644
--- a/src/wallet/rpcsigner.cpp
+++ b/src/wallet/rpcsigner.cpp
@@ -32,9 +32,6 @@ static RPCHelpMan enumeratesigners()
},
RPCExamples{""},
[](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue {
- std::shared_ptr<CWallet> const wallet = GetWalletForJSONRPCRequest(request);
- if (!wallet) return NullUniValue;
-
const std::string command = gArgs.GetArg("-signer", "");
if (command == "") throw JSONRPCError(RPC_WALLET_ERROR, "Error: restart bitcoind with -signer=<cmd>");
std::string chain = gArgs.GetChainName();