Merge pull request #1955 from gmaxwell/gbt_paramfix
Don't force getblocktemplate to have a parameter.
This commit is contained in:
commit
2e9e6641e1
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ Value getwork(const Array& params, bool fHelp)
|
||||||
|
|
||||||
Value getblocktemplate(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(
|
throw runtime_error(
|
||||||
"getblocktemplate [params]\n"
|
"getblocktemplate [params]\n"
|
||||||
"Returns data needed to construct a block to work on:\n"
|
"Returns data needed to construct a block to work on:\n"
|
||||||
|
|
Loading…
Reference in a new issue