[qt] Use maxTxFee instead of 10000000

This commit is contained in:
MarcoFalke
2015-10-25 01:27:24 +02:00
parent 3038eb63e8
commit 513686dd43
2 changed files with 5 additions and 3 deletions

View File

@@ -290,8 +290,10 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact
return TransactionCreationFailed;
}
// reject absurdly high fee > 0.1 bitcoin
if (nFeeRequired > 10000000)
// reject absurdly high fee. (This can never happen because the
// wallet caps the fee at maxTxFee. This merely serves as a
// belt-and-suspenders check)
if (nFeeRequired > maxTxFee)
return AbsurdFee;
}