Proxy forging share to recipient can now be zero

This commit is contained in:
catbref 2019-05-21 17:22:15 +01:00
parent 0259702df2
commit d0b45cb696

View File

@ -78,7 +78,7 @@ public class ProxyForgingTransaction extends Transaction {
@Override
public ValidationResult isValid() throws DataException {
// Check reward share given to recipient
if (this.proxyForgingTransactionData.getShare().compareTo(BigDecimal.ZERO) <= 0
if (this.proxyForgingTransactionData.getShare().compareTo(BigDecimal.ZERO) < 0
|| this.proxyForgingTransactionData.getShare().compareTo(MAX_SHARE) > 0)
return ValidationResult.INVALID_FORGE_SHARE;