mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-19 02:41: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:
parent
89236d6504
commit
5b402e0bca
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user