Remove missed, extraneous last-reference check from CreateAssetOrderTransaction.isValid()

This commit is contained in:
catbref 2020-04-16 09:24:04 +01:00
parent 1e9a7ac87d
commit c2a3c1271c

View File

@ -2,7 +2,6 @@ package org.qortal.transaction;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.qortal.account.Account;
@ -173,10 +172,6 @@ public class CreateAssetOrderTransaction extends Transaction {
return ValidationResult.NO_BALANCE;
}
// Check reference is correct
if (!Arrays.equals(creator.getLastReference(), createOrderTransactionData.getReference()))
return ValidationResult.INVALID_REFERENCE;
return ValidationResult.OK;
}