mirror of
https://github.com/Qortal/qortal.git
synced 2025-06-07 08:46:58 +00:00
Improved transaction validation.
This commit is contained in:
parent
a75ed0e634
commit
7ae142fa64
@ -163,11 +163,9 @@ public class RewardShareTransaction extends Transaction {
|
|||||||
return ValidationResult.SELF_SHARE_EXISTS;
|
return ValidationResult.SELF_SHARE_EXISTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fee checking needed if not setting up new self-share
|
// Check creator has enough funds
|
||||||
if (!(isRecipientAlsoMinter && existingRewardShareData == null))
|
if (creator.getConfirmedBalance(Asset.QORT) < this.rewardShareTransactionData.getFee())
|
||||||
// Check creator has enough funds
|
return ValidationResult.NO_BALANCE;
|
||||||
if (creator.getConfirmedBalance(Asset.QORT) < this.rewardShareTransactionData.getFee())
|
|
||||||
return ValidationResult.NO_BALANCE;
|
|
||||||
|
|
||||||
return ValidationResult.OK;
|
return ValidationResult.OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user