Only enable getblocktemplate when wallet is enabled
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user