rpc: don't require wallet for enumeratesigners

This commit is contained in:
Sjors Provoost 2021-03-11 15:15:14 +01:00
parent e828fc8f52
commit 03308b2bfa
No known key found for this signature in database
GPG key ID: 57FF9BDBCC301009

View file

@ -32,9 +32,6 @@ static RPCHelpMan enumeratesigners()
}, },
RPCExamples{""}, RPCExamples{""},
[](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue { [](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", ""); const std::string command = gArgs.GetArg("-signer", "");
if (command == "") throw JSONRPCError(RPC_WALLET_ERROR, "Error: restart bitcoind with -signer=<cmd>"); if (command == "") throw JSONRPCError(RPC_WALLET_ERROR, "Error: restart bitcoind with -signer=<cmd>");
std::string chain = gArgs.GetChainName(); std::string chain = gArgs.GetChainName();