aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-10-25 05:37:51 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2012-10-25 05:37:51 -0700
commit2e9e6641e1693ca45b566d0b8f6c983fec3fffbe (patch)
treec2b39ac75ccb02bbd2301a58fc3679ae26262ecb /src/rpcmining.cpp
parentc98a0a432e10a66b818c70cf675937063870a0bb (diff)
parent3beac9837f93a3fd1716776d50576dd778b419b2 (diff)
Merge pull request #1955 from gmaxwell/gbt_paramfix
Don't force getblocktemplate to have a parameter.
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"