|
|
|
@ -428,7 +428,7 @@ static void SendMoney(CWallet * const pwallet, const CTxDestination &address, CA
@@ -428,7 +428,7 @@ static void SendMoney(CWallet * const pwallet, const CTxDestination &address, CA
|
|
|
|
|
int nChangePosRet = -1; |
|
|
|
|
CRecipient recipient = {scriptPubKey, nValue, fSubtractFeeFromAmount}; |
|
|
|
|
vecSend.push_back(recipient); |
|
|
|
|
if (!pwallet->CreateTransaction(vecSend, wtxNew, reservekey, nFeeRequired, nChangePosRet, strError, coin_control)) { |
|
|
|
|
if (!pwallet->CreateTransaction(vecSend, nullptr, wtxNew, reservekey, nFeeRequired, nChangePosRet, strError, coin_control)) { |
|
|
|
|
if (!fSubtractFeeFromAmount && nValue + nFeeRequired > curBalance) |
|
|
|
|
strError = strprintf("Error: This transaction requires a transaction fee of at least %s", FormatMoney(nFeeRequired)); |
|
|
|
|
throw JSONRPCError(RPC_WALLET_ERROR, strError); |
|
|
|
@ -1200,7 +1200,7 @@ UniValue sendmany(const JSONRPCRequest& request)
@@ -1200,7 +1200,7 @@ UniValue sendmany(const JSONRPCRequest& request)
|
|
|
|
|
CAmount nFeeRequired = 0; |
|
|
|
|
int nChangePosRet = -1; |
|
|
|
|
std::string strFailReason; |
|
|
|
|
bool fCreated = pwallet->CreateTransaction(vecSend, wtx, keyChange, nFeeRequired, nChangePosRet, strFailReason, coin_control); |
|
|
|
|
bool fCreated = pwallet->CreateTransaction(vecSend, nullptr, wtx, keyChange, nFeeRequired, nChangePosRet, strFailReason, coin_control); |
|
|
|
|
if (!fCreated) |
|
|
|
|
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, strFailReason); |
|
|
|
|
CValidationState state; |
|
|
|
@ -3643,7 +3643,7 @@ static const CRPCCommand commands[] =
@@ -3643,7 +3643,7 @@ static const CRPCCommand commands[] =
|
|
|
|
|
{ "generating", "generate", &generate, {"nblocks","maxtries"} }, |
|
|
|
|
|
|
|
|
|
// Kevacoin-specific wallet calls.
|
|
|
|
|
{ "kevacoin", "keva_namespace", &keva_namespace, {"namespace", "key", "value", "create_namespace"} } |
|
|
|
|
{ "kevacoin", "keva_namespace", &keva_namespace, {"namespace", "key", "value", "create_namespace"} }, |
|
|
|
|
{ "kevacoin", "keva_put", &keva_put, {"namespace", "key", "value", "put_value"} } |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|