Fix rewards unlock help trigger
This commit is contained in:
@@ -5044,7 +5044,7 @@ UniValue rewardsaddfunding(const UniValue& params, bool fHelp)
|
|||||||
UniValue rewardsunlock(const UniValue& params, bool fHelp)
|
UniValue rewardsunlock(const UniValue& params, bool fHelp)
|
||||||
{
|
{
|
||||||
UniValue result(UniValue::VOBJ); std::string hex; char *name; uint256 fundingtxid,txid;
|
UniValue result(UniValue::VOBJ); std::string hex; char *name; uint256 fundingtxid,txid;
|
||||||
if ( fHelp || params.size() > 3 )
|
if ( fHelp || params.size() > 3 || params.size() < 2 )
|
||||||
throw runtime_error("rewardsunlock name fundingtxid [txid]\n");
|
throw runtime_error("rewardsunlock name fundingtxid [txid]\n");
|
||||||
if ( ensure_CCrequirements() < 0 )
|
if ( ensure_CCrequirements() < 0 )
|
||||||
throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");
|
throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user