Skip to content

Commit

Permalink
Fix for listbetsdb (dashpay#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
wagerr-builder authored Mar 5, 2023
1 parent 882eb48 commit 6cabd16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/bet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ UniValue getfieldeventliability(const JSONRPCRequest& request)

UniValue listbetsdb(const JSONRPCRequest& request)
{
if (request.fHelp || request.params.size() < 2 || request.params.size() > 2)
if (request.fHelp || request.params.size() > 2)
throw std::runtime_error(
"listbetsdb\n"
"\nGet bets form bets DB.\n"
Expand Down
1 change: 1 addition & 0 deletions src/rpc/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{"listbets", 3},
{"getbet", 1},
{"listbetsdb", 0},
{"listbetsdb", 1},
{"getmybets", 1},
{"getmybets", 2},
{"getmybets", 3},
Expand Down

0 comments on commit 6cabd16

Please sign in to comment.