@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user