Browse Source
Only enable getblocktemplate when wallet is enabled
pull/4/head
Jack Grigg
8 years ago
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
2 changed files with
4 additions and
0 deletions
-
src/rpcmining.cpp
-
src/rpcserver.cpp
|
|
@ -401,6 +401,7 @@ static Value BIP22ValidationResult(const CValidationState& state) |
|
|
|
return "valid?"; |
|
|
|
} |
|
|
|
|
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
Value getblocktemplate(const Array& params, bool fHelp) |
|
|
|
{ |
|
|
|
if (fHelp || params.size() > 1) |
|
|
@ -694,6 +695,7 @@ Value getblocktemplate(const Array& params, bool fHelp) |
|
|
|
|
|
|
|
return result; |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
class submitblock_StateCatcher : public CValidationInterface |
|
|
|
{ |
|
|
|
|
|
@ -302,7 +302,9 @@ static const CRPCCommand vRPCCommands[] = |
|
|
|
{ "blockchain", "verifychain", &verifychain, true }, |
|
|
|
|
|
|
|
/* Mining */ |
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
{ "mining", "getblocktemplate", &getblocktemplate, true }, |
|
|
|
#endif |
|
|
|
{ "mining", "getmininginfo", &getmininginfo, true }, |
|
|
|
{ "mining", "getlocalsolps", &getlocalsolps, true }, |
|
|
|
{ "mining", "getnetworksolps", &getnetworksolps, true }, |
|
|
|