326@@ -327,36 +327,53 @@ static UniValue setlabel(const JSONRPCRequest& request)
327 return NullUniValue;
328 }
329
330-
331-static CTransactionRef SendMoney(interfaces::Chain::Lock& locked_chain, CWallet * const pwallet, const CTxDestination &address, CAmount nValue, bool fSubtractFeeFromAmount, const CCoinControl& coin_control, mapValue_t mapValue)
332+UniValue SendMoney(interfaces::Chain::Lock& locked_chain, CWallet * const pwallet, CCoinControl coin_control, UniValue& address_amounts, mapValue_t map_value, UniValue& subtract_fee_outputs)
Do you intend to pass coin_control by value? In the original code it’s a const CCoinControl &
which avoids a copy.