4be639e Use RPC_INVALID_PARAMETER instead of RPC_WALLET_ERROR for invalid amount. No return at the end of void function. (Pavel Janík)
b93173d Move SendMoney() to rpcwallet.cpp. (Pavel Janík)
strError=strprintf("Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!",FormatMoney(nFeeRequired));
throwJSONRPCError(RPC_WALLET_ERROR,"Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.");
}
Valuesendtoaddress(constArray¶ms,boolfHelp)
{
if(fHelp||params.size()<2||params.size()>4)
@ -348,9 +383,7 @@ Value sendtoaddress(const Array& params, bool fHelp)
@@ -348,9 +383,7 @@ Value sendtoaddress(const Array& params, bool fHelp)
strError=strprintf(_("Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!"),FormatMoney(nFeeRequired));
LogPrintf("SendMoney() : %s\n",strError);
returnstrError;
}
if(!CommitTransaction(wtxNew,reservekey))
return_("Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.");