Skip to content

Commit

Permalink
Merge pull request bitcoin#22 from dexX7/mcore-0.0.9-zathras-ui-min-a…
Browse files Browse the repository at this point in the history
…mount

QT: minimum amount calculation for "Send" warning
  • Loading branch information
zathras-crypto committed Feb 16, 2015
2 parents 8ba72ca + 79d98d5 commit 5585273
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/qt/sendmpdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ void SendMPDialog::updateFrom()
currentSetFromAddress = "";
}
int64_t inputTotal = feeCheck(currentSetFromAddress);
int64_t minWarn = (nTransactionFee * 2) + 2000; // warn when fees are not sufficient to cover a 2KB simple send
if (inputTotal>=minWarn)
int64_t minWarn = 3 * CTransaction::nMinRelayTxFee + 2 * nTransactionFee;
// warn when fees are not sufficient to cover a 2 KB simple send
if (inputTotal >= minWarn)
{
ui->feeWarningLabel->setVisible(false);
}
Expand Down

0 comments on commit 5585273

Please sign in to comment.