aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r--src/rpcmining.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index aac040c496..2954b9ee57 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -11,9 +11,6 @@
using namespace json_spirit;
using namespace std;
-extern double GetDifficulty(const CBlockIndex* blockindex = NULL);
-extern std::string HexBits(unsigned int nBits);
-
Value getgenerate(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
@@ -377,8 +374,8 @@ Value submitblock(const Array& params, bool fHelp)
bool fAccepted = ProcessBlock(NULL, &block);
if (!fAccepted)
- throw JSONRPCError(-23, "Block rejected");
+ return "rejected";
- return true;
+ return Value::null;
}