forked from Qortal/qortal
Proxy forging share to recipient can now be zero
This commit is contained in:
parent
0259702df2
commit
d0b45cb696
@ -78,7 +78,7 @@ public class ProxyForgingTransaction extends Transaction {
|
|||||||
@Override
|
@Override
|
||||||
public ValidationResult isValid() throws DataException {
|
public ValidationResult isValid() throws DataException {
|
||||||
// Check reward share given to recipient
|
// 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)
|
|| this.proxyForgingTransactionData.getShare().compareTo(MAX_SHARE) > 0)
|
||||||
return ValidationResult.INVALID_FORGE_SHARE;
|
return ValidationResult.INVALID_FORGE_SHARE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user