From c2a3c1271c410bfa7d9eccf81f7a4000bc5a5a47 Mon Sep 17 00:00:00 2001 From: catbref Date: Thu, 16 Apr 2020 09:24:04 +0100 Subject: [PATCH] Remove missed, extraneous last-reference check from CreateAssetOrderTransaction.isValid() --- .../org/qortal/transaction/CreateAssetOrderTransaction.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/org/qortal/transaction/CreateAssetOrderTransaction.java b/src/main/java/org/qortal/transaction/CreateAssetOrderTransaction.java index 5b8cd163..2c982fc7 100644 --- a/src/main/java/org/qortal/transaction/CreateAssetOrderTransaction.java +++ b/src/main/java/org/qortal/transaction/CreateAssetOrderTransaction.java @@ -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; }