Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 3,455 Lines • ▼ Show 20 Lines | txNew.nLockTime = GetLocktimeForNewTransaction(chain(), locked_chainIn); | ||||
if (bnb_used) { | if (bnb_used) { | ||||
coin_selection_params.use_bnb = false; | coin_selection_params.use_bnb = false; | ||||
continue; | continue; | ||||
} else { | } else { | ||||
strFailReason = _("Insufficient funds").translated; | strFailReason = _("Insufficient funds").translated; | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
} else { | |||||
bnb_used = false; | |||||
} | } | ||||
const Amount nChange = nValueIn - nValueToSelect; | const Amount nChange = nValueIn - nValueToSelect; | ||||
if (nChange > Amount::zero()) { | if (nChange > Amount::zero()) { | ||||
// Fill a vout to ourself. | // Fill a vout to ourself. | ||||
CTxOut newTxOut(nChange, scriptChange); | CTxOut newTxOut(nChange, scriptChange); | ||||
// Never create dust outputs; if we would, just add the dust to | // Never create dust outputs; if we would, just add the dust to | ||||
▲ Show 20 Lines • Show All 2,014 Lines • Show Last 20 Lines |