mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Remove getwork() RPC call
This commit is contained in:
parent
7b4737c878
commit
cf0c47b269
4 changed files with 1 additions and 165 deletions
|
|
@ -315,7 +315,6 @@ static const CRPCCommand vRPCCommands[] =
|
|||
/* Wallet-enabled mining */
|
||||
{ "getgenerate", &getgenerate, true, false, false },
|
||||
{ "gethashespersec", &gethashespersec, true, false, false },
|
||||
{ "getwork", &getwork, true, false, true },
|
||||
{ "setgenerate", &setgenerate, true, true, false },
|
||||
#endif // ENABLE_WALLET
|
||||
};
|
||||
|
|
@ -772,7 +771,7 @@ void JSONRequest::parse(const Value& valRequest)
|
|||
if (valMethod.type() != str_type)
|
||||
throw JSONRPCError(RPC_INVALID_REQUEST, "Method must be a string");
|
||||
strMethod = valMethod.get_str();
|
||||
if (strMethod != "getwork" && strMethod != "getblocktemplate")
|
||||
if (strMethod != "getblocktemplate")
|
||||
LogPrint("rpc", "ThreadRPCServer method=%s\n", strMethod);
|
||||
|
||||
// Parse params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue