mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
[qt] Use maxTxFee instead of 10000000
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user