Fix incorrect error message in z_sendmany
This commit is contained in:
parent
90c116ac54
commit
10d1b90987
|
@ -197,11 +197,11 @@ bool AsyncRPCOperation_sendmany::main_impl() {
|
||||||
CAmount targetAmount = sendAmount + minersFee;
|
CAmount targetAmount = sendAmount + minersFee;
|
||||||
|
|
||||||
if (isfromtaddr_ && (t_inputs_total < targetAmount)) {
|
if (isfromtaddr_ && (t_inputs_total < targetAmount)) {
|
||||||
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, strprintf("Insufficient transparent funds, have %ld, need %ld plus fee %ld", t_inputs_total, t_outputs_total, minersFee));
|
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, strprintf("Insufficient transparent funds, have %ld, need %ld", t_inputs_total, targetAmount));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isfromzaddr_ && (z_inputs_total < targetAmount)) {
|
if (isfromzaddr_ && (z_inputs_total < targetAmount)) {
|
||||||
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, strprintf("Insufficient protected funds, have %ld, need %ld plus fee %ld", z_inputs_total, z_outputs_total, minersFee));
|
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, strprintf("Insufficient protected funds, have %ld, need %ld", z_inputs_total, targetAmount));
|
||||||
}
|
}
|
||||||
|
|
||||||
// If from address is a taddr, select UTXOs to spend
|
// If from address is a taddr, select UTXOs to spend
|
||||||
|
|
Loading…
Reference in New Issue