mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Do not allow negative fees.
This commit is contained in:
@@ -57,6 +57,9 @@ TER Transactor::payFee()
|
||||
return telINSUF_FEE_P;
|
||||
}
|
||||
|
||||
if (saPaid.isNegative())
|
||||
return temBAD_AMOUNT;
|
||||
|
||||
if (!saPaid) return tesSUCCESS;
|
||||
|
||||
// Deduct the fee, so it's not available during the transaction.
|
||||
|
||||
Reference in New Issue
Block a user