mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-29 13:11:22 +00:00
validate name buyer's balance relative to the amount of the name purchase in addition to the fee
This commit is contained in:
@@ -102,7 +102,7 @@ public class BuyNameTransaction extends Transaction {
|
||||
return ValidationResult.INVALID_AMOUNT;
|
||||
|
||||
// Check buyer has enough funds
|
||||
if (buyer.getConfirmedBalance(Asset.QORT) < this.buyNameTransactionData.getFee())
|
||||
if (buyer.getConfirmedBalance(Asset.QORT) < this.buyNameTransactionData.getFee() + this.buyNameTransactionData.getAmount())
|
||||
return ValidationResult.NO_BALANCE;
|
||||
|
||||
return ValidationResult.OK;
|
||||
|
Reference in New Issue
Block a user