Changeset View
Changeset View
Standalone View
Standalone View
src/qt/coincontroldialog.cpp
Show First 20 Lines • Show All 452 Lines • ▼ Show 20 Lines | void CoinControlDialog::updateLabels(WalletModel *model, QDialog *dialog) { | ||||
if (!model) { | if (!model) { | ||||
return; | return; | ||||
} | } | ||||
// nPayAmount | // nPayAmount | ||||
Amount nPayAmount = Amount::zero(); | Amount nPayAmount = Amount::zero(); | ||||
bool fDust = false; | bool fDust = false; | ||||
CMutableTransaction txDummy; | CMutableTransaction txDummy; | ||||
for (const Amount amount : CoinControlDialog::payAmounts) { | for (const Amount &amount : CoinControlDialog::payAmounts) { | ||||
nPayAmount += amount; | nPayAmount += amount; | ||||
if (amount > Amount::zero()) { | if (amount > Amount::zero()) { | ||||
CTxOut txout(amount, | CTxOut txout(amount, | ||||
static_cast<CScript>(std::vector<uint8_t>(24, 0))); | static_cast<CScript>(std::vector<uint8_t>(24, 0))); | ||||
txDummy.vout.push_back(txout); | txDummy.vout.push_back(txout); | ||||
fDust |= IsDust(txout, model->node().getDustRelayFee()); | fDust |= IsDust(txout, model->node().getDustRelayFee()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 364 Lines • Show Last 20 Lines |