Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 3,401 Lines • ▼ Show 20 Lines | for (size_t idx = 0; idx < subtractFeeFromOutputs.size(); idx++) { | ||||
RPC_INVALID_PARAMETER, | RPC_INVALID_PARAMETER, | ||||
strprintf("Invalid parameter, position too large: %d", pos)); | strprintf("Invalid parameter, position too large: %d", pos)); | ||||
} | } | ||||
setSubtractFeeFromOutputs.insert(pos); | setSubtractFeeFromOutputs.insert(pos); | ||||
} | } | ||||
Amount nFeeOut; | Amount nFeeOut; | ||||
std::string strFailReason; | std::string strFailReason; | ||||
if (!pwallet->FundTransaction( | if (!pwallet->FundTransaction( | ||||
tx, nFeeOut, overrideEstimatedFeerate, feeRate, changePosition, | tx, nFeeOut, overrideEstimatedFeerate, feeRate, changePosition, | ||||
strFailReason, includeWatching, lockUnspents, | strFailReason, includeWatching, lockUnspents, | ||||
setSubtractFeeFromOutputs, reserveChangeKey, changeAddress)) { | setSubtractFeeFromOutputs, reserveChangeKey, changeAddress)) { | ||||
throw JSONRPCError(RPC_WALLET_ERROR, strFailReason); | throw JSONRPCError(RPC_WALLET_ERROR, strFailReason); | ||||
} | } | ||||
UniValue result(UniValue::VOBJ); | UniValue result(UniValue::VOBJ); | ||||
▲ Show 20 Lines • Show All 197 Lines • Show Last 20 Lines |