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.");
return;
}
Valuesendtoaddress(constArray¶ms,boolfHelp)
Valuesendtoaddress(constArray¶ms,boolfHelp)
{
{
if(fHelp||params.size()<2||params.size()>4)
if(fHelp||params.size()<2||params.size()>4)
@ -348,9 +385,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.");