mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-02 11:59:48 -08:00
dynamic coin name
This commit is contained in:
@@ -36,7 +36,7 @@ Value importprivkey(const Array& params, bool fHelp)
|
||||
{
|
||||
if (fHelp || params.size() < 1 || params.size() > 3)
|
||||
throw runtime_error(
|
||||
"importprivkey <casinocoinprivkey> [label] [rescan=true]\n"
|
||||
"importprivkey <"+ COIN_NAME + "privkey> [label] [rescan=true]\n"
|
||||
"Adds a private key (as returned by dumpprivkey) to your wallet.");
|
||||
|
||||
string strSecret = params[0].get_str();
|
||||
@@ -79,13 +79,13 @@ Value dumpprivkey(const Array& params, bool fHelp)
|
||||
{
|
||||
if (fHelp || params.size() != 1)
|
||||
throw runtime_error(
|
||||
"dumpprivkey <casinocoinaddress>\n"
|
||||
"Reveals the private key corresponding to <casinocoinaddress>.");
|
||||
"dumpprivkey <"+ COIN_NAME + "address>\n"
|
||||
"Reveals the private key corresponding to <"+ COIN_NAME + "address>.");
|
||||
|
||||
string strAddress = params[0].get_str();
|
||||
CBitcoinAddress address;
|
||||
if (!address.SetString(strAddress))
|
||||
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid CasinoCoin address");
|
||||
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid "+ COIN_NAME_DISPLAY + " address");
|
||||
CKeyID keyID;
|
||||
if (!address.GetKeyID(keyID))
|
||||
throw JSONRPCError(RPC_TYPE_ERROR, "Address does not refer to a key");
|
||||
|
||||
Reference in New Issue
Block a user