@ -103,7 +103,7 @@ Value getnewaddress(const Array& params, bool fHelp)
@@ -103,7 +103,7 @@ Value getnewaddress(const Array& params, bool fHelp)
if ( fHelp | | params . size ( ) > 1 )
throw runtime_error (
" getnewaddress [account] \n "
" Returns a new Anon coin address for receiving payments. "
" Returns a new Gost coin address for receiving payments. "
" If [account] is specified (recommended), it is added to the address book "
" so payments received with the address will be credited to [account]. " ) ;
@ -170,7 +170,7 @@ Value getaccountaddress(const Array& params, bool fHelp)
@@ -170,7 +170,7 @@ Value getaccountaddress(const Array& params, bool fHelp)
if ( fHelp | | params . size ( ) ! = 1 )
throw runtime_error (
" getaccountaddress <account> \n "
" Returns the current Anon coin address for receiving payments to this account. " ) ;
" Returns the current Gost coin address for receiving payments to this account. " ) ;
// Parse the account first so we don't generate a key if there's an error
string strAccount = AccountFromValue ( params [ 0 ] ) ;
@ -188,12 +188,12 @@ Value setaccount(const Array& params, bool fHelp)
@@ -188,12 +188,12 @@ Value setaccount(const Array& params, bool fHelp)
{
if ( fHelp | | params . size ( ) < 1 | | params . size ( ) > 2 )
throw runtime_error (
" setaccount <anon coinaddress> <account> \n "
" setaccount <gost coinaddress> <account> \n "
" Sets the account associated with the given address. " ) ;
CBitcoinAddress address ( params [ 0 ] . get_str ( ) ) ;
if ( ! address . IsValid ( ) )
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , " Invalid Anon coin address " ) ;
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , " Invalid Gost coin address " ) ;
string strAccount ;
@ -218,12 +218,12 @@ Value getaccount(const Array& params, bool fHelp)
@@ -218,12 +218,12 @@ Value getaccount(const Array& params, bool fHelp)
{
if ( fHelp | | params . size ( ) ! = 1 )
throw runtime_error (
" getaccount <anon coinaddress> \n "
" getaccount <gost coinaddress> \n "
" Returns the account associated with the given address. " ) ;
CBitcoinAddress address ( params [ 0 ] . get_str ( ) ) ;
if ( ! address . IsValid ( ) )
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , " Invalid Anon coin address " ) ;
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , " Invalid Gost coin address " ) ;
string strAccount ;
map < CTxDestination , string > : : iterator mi = pwalletMain - > mapAddressBook . find ( address . Get ( ) ) ;
@ -276,13 +276,13 @@ Value sendtoaddress(const Array& params, bool fHelp)
@@ -276,13 +276,13 @@ Value sendtoaddress(const Array& params, bool fHelp)
{
if ( fHelp | | params . size ( ) < 2 | | params . size ( ) > 4 )
throw runtime_error (
" sendtoaddress <anon coinaddress> <amount> [comment] [comment-to] \n "
" sendtoaddress <gost coinaddress> <amount> [comment] [comment-to] \n "
" <amount> is a real and is rounded to the nearest 0.00000001 "
+ HelpRequiringPassphrase ( ) ) ;
CBitcoinAddress address ( params [ 0 ] . get_str ( ) ) ;
if ( ! address . IsValid ( ) )
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , " Invalid Anon coin address " ) ;
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , " Invalid Gost coin address " ) ;
// Amount
int64 nAmount = AmountFromValue ( params [ 1 ] ) ;
@ -339,7 +339,7 @@ Value signmessage(const Array& params, bool fHelp)
@@ -339,7 +339,7 @@ Value signmessage(const Array& params, bool fHelp)
{
if ( fHelp | | params . size ( ) ! = 2 )
throw runtime_error (
" signmessage <anon coinaddress> <message> \n "
" signmessage <gost coinaddress> <message> \n "
" Sign a message with the private key of an address " ) ;
EnsureWalletIsUnlocked ( ) ;
@ -374,7 +374,7 @@ Value verifymessage(const Array& params, bool fHelp)
@@ -374,7 +374,7 @@ Value verifymessage(const Array& params, bool fHelp)
{
if ( fHelp | | params . size ( ) ! = 3 )
throw runtime_error (
" verifymessage <anon coinaddress> <signature> <message> \n "
" verifymessage <gost coinaddress> <signature> <message> \n "
" Verify a signed message " ) ;
string strAddress = params [ 0 ] . get_str ( ) ;
@ -411,14 +411,14 @@ Value getreceivedbyaddress(const Array& params, bool fHelp)
@@ -411,14 +411,14 @@ Value getreceivedbyaddress(const Array& params, bool fHelp)
{
if ( fHelp | | params . size ( ) < 1 | | params . size ( ) > 2 )
throw runtime_error (
" getreceivedbyaddress <anon coinaddress> [minconf=1] \n "
" Returns the total amount received by <anon coinaddress> in transactions with at least [minconf] confirmations. " ) ;
" getreceivedbyaddress <gost coinaddress> [minconf=1] \n "
" Returns the total amount received by <gost coinaddress> in transactions with at least [minconf] confirmations. " ) ;
// Bitcoin address
CBitcoinAddress address = CBitcoinAddress ( params [ 0 ] . get_str ( ) ) ;
CScript scriptPubKey ;
if ( ! address . IsValid ( ) )
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , " Invalid Anon coin address " ) ;
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , " Invalid Gost coin address " ) ;
scriptPubKey . SetDestination ( address . Get ( ) ) ;
if ( ! IsMine ( * pwalletMain , scriptPubKey ) )
return ( double ) 0.0 ;
@ -632,14 +632,14 @@ Value sendfrom(const Array& params, bool fHelp)
@@ -632,14 +632,14 @@ Value sendfrom(const Array& params, bool fHelp)
{
if ( fHelp | | params . size ( ) < 3 | | params . size ( ) > 6 )
throw runtime_error (
" sendfrom <fromaccount> <toanon coinaddress> <amount> [minconf=1] [comment] [comment-to] \n "
" sendfrom <fromaccount> <togost coinaddress> <amount> [minconf=1] [comment] [comment-to] \n "
" <amount> is a real and is rounded to the nearest 0.00000001 "
+ HelpRequiringPassphrase ( ) ) ;
string strAccount = AccountFromValue ( params [ 0 ] ) ;
CBitcoinAddress address ( params [ 1 ] . get_str ( ) ) ;
if ( ! address . IsValid ( ) )
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , " Invalid Anon coin address " ) ;
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , " Invalid Gost coin address " ) ;
int64 nAmount = AmountFromValue ( params [ 2 ] ) ;
int nMinDepth = 1 ;
if ( params . size ( ) > 3 )
@ -695,7 +695,7 @@ Value sendmany(const Array& params, bool fHelp)
@@ -695,7 +695,7 @@ Value sendmany(const Array& params, bool fHelp)
{
CBitcoinAddress address ( s . name_ ) ;
if ( ! address . IsValid ( ) )
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , string ( " Invalid Anon coin address: " ) + s . name_ ) ;
throw JSONRPCError ( RPC_INVALID_ADDRESS_OR_KEY , string ( " Invalid Gost coin address: " ) + s . name_ ) ;
if ( setAddress . count ( address ) )
throw JSONRPCError ( RPC_INVALID_PARAMETER , string ( " Invalid parameter, duplicated address: " ) + s . name_ ) ;
@ -791,7 +791,7 @@ Value addmultisigaddress(const Array& params, bool fHelp)
@@ -791,7 +791,7 @@ Value addmultisigaddress(const Array& params, bool fHelp)
{
string msg = " addmultisigaddress <nrequired> <'[ \" key \" , \" key \" ]'> [account] \n "
" Add a nrequired-to-sign multisignature address to the wallet \" \n "
" each key is a Anon coin address or hex-encoded public key \n "
" each key is a Gost coin address or hex-encoded public key \n "
" If [account] is specified, assign address to [account]. " ;
throw runtime_error ( msg ) ;
}
@ -816,7 +816,7 @@ Value createmultisig(const Array& params, bool fHelp)
@@ -816,7 +816,7 @@ Value createmultisig(const Array& params, bool fHelp)
string msg = " createmultisig <nrequired> <'[ \" key \" , \" key \" ]'> \n "
" Creates a multi-signature address and returns a json object \n "
" with keys: \n "
" address : anon coin address \n "
" address : gost coin address \n "
" redeemScript : hex-encoded redemption script " ;
throw runtime_error ( msg ) ;
}
@ -1471,7 +1471,7 @@ Value encryptwallet(const Array& params, bool fHelp)
@@ -1471,7 +1471,7 @@ Value encryptwallet(const Array& params, bool fHelp)
// slack space in .dat files; that is bad if the old data is
// unencrypted private keys. So:
StartShutdown ( ) ;
return " wallet encrypted; Anon coin server stopping, restart to run with encrypted wallet. The keypool has been flushed, you need to make a new backup. " ;
return " wallet encrypted; Gost coin server stopping, restart to run with encrypted wallet. The keypool has been flushed, you need to make a new backup. " ;
}
class DescribeAddressVisitor : public boost : : static_visitor < Object >
@ -1513,8 +1513,8 @@ Value validateaddress(const Array& params, bool fHelp)
@@ -1513,8 +1513,8 @@ Value validateaddress(const Array& params, bool fHelp)
{
if ( fHelp | | params . size ( ) ! = 1 )
throw runtime_error (
" validateaddress <anon coinaddress> \n "
" Return information about <anon coinaddress>. " ) ;
" validateaddress <gost coinaddress> \n "
" Return information about <gost coinaddress>. " ) ;
CBitcoinAddress address ( params [ 0 ] . get_str ( ) ) ;
bool isValid = address . IsValid ( ) ;