aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2012-10-24 12:39:46 -0400
committerGregory Maxwell <greg@xiph.org>2012-10-24 12:39:46 -0400
commit3beac9837f93a3fd1716776d50576dd778b419b2 (patch)
tree9dc59b02738148a064120dc2e46793534ad9c786 /src/rpcmining.cpp
parent55913c997112c78d6058edfa210b6275cde853a6 (diff)
Don't force getblocktemplate to have a parameter.
This looks like it was just a munged merge when ultraprune was committed.
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r--src/rpcmining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index 0270b5f102..0591f35392 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -198,7 +198,7 @@ Value getwork(const Array& params, bool fHelp)
Value getblocktemplate(const Array& params, bool fHelp)
{
- if (fHelp || params.size() != 1)
+ if (fHelp || params.size() > 1)
throw runtime_error(
"getblocktemplate [params]\n"
"Returns data needed to construct a block to work on:\n"