Merge pull request #1290 from Mixa84/FSM

GatewaysCC small fixes
This commit is contained in:
jl777
2019-02-27 04:34:22 -11:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -1815,7 +1815,7 @@ UniValue GatewaysDumpPrivKey(uint256 bindtxid,CKey key)
priv=EncodeCustomSecret(key,wiftype); priv=EncodeCustomSecret(key,wiftype);
result.push_back(Pair("result","success")); result.push_back(Pair("result","success"));
result.push_back(Pair("address",priv.c_str())); result.push_back(Pair("privkey",priv.c_str()));
return(result); return(result);
} }

View File

@@ -6310,7 +6310,7 @@ UniValue gatewaysdumpprivkey(const UniValue& params, bool fHelp)
uint256 bindtxid; uint256 bindtxid;
if ( fHelp || params.size() != 2) if ( fHelp || params.size() != 2)
throw runtime_error("gatewaysexternaladdress bindtxid address\n"); throw runtime_error("gatewaysdumpprivkey bindtxid address\n");
if ( ensure_CCrequirements(EVAL_GATEWAYS) < 0 ) if ( ensure_CCrequirements(EVAL_GATEWAYS) < 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");
LOCK2(cs_main, pwalletMain->cs_wallet); LOCK2(cs_main, pwalletMain->cs_wallet);