Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 3,039 Lines • ▼ Show 20 Lines | assert(txNew.nLockTime < LOCKTIME_THRESHOLD); | ||||
txNew.vout.clear(); | txNew.vout.clear(); | ||||
bool fFirst = true; | bool fFirst = true; | ||||
Amount nValueToSelect = nValue; | Amount nValueToSelect = nValue; | ||||
if (nSubtractFeeFromAmount == 0) { | if (nSubtractFeeFromAmount == 0) { | ||||
nValueToSelect += nFeeRet; | nValueToSelect += nFeeRet; | ||||
} | } | ||||
// Static vsize overhead + outputs vsize. 4 nVersion, 4 nLocktime, 1 | // Static size overhead + outputs vsize. 4 nVersion, 4 nLocktime, 1 | ||||
// input count, 1 output count | // input count, 1 output count | ||||
coin_selection_params.tx_noinputs_size = 10; | coin_selection_params.tx_noinputs_size = 10; | ||||
// vouts to the payees | // vouts to the payees | ||||
for (const auto &recipient : vecSend) { | for (const auto &recipient : vecSend) { | ||||
CTxOut txout(recipient.nAmount, recipient.scriptPubKey); | CTxOut txout(recipient.nAmount, recipient.scriptPubKey); | ||||
if (recipient.fSubtractFeeFromAmount) { | if (recipient.fSubtractFeeFromAmount) { | ||||
assert(nSubtractFeeFromAmount != 0); | assert(nSubtractFeeFromAmount != 0); | ||||
▲ Show 20 Lines • Show All 1,849 Lines • Show Last 20 Lines |