From 4edc3ee12115c6924314452f65f77773b5234459 Mon Sep 17 00:00:00 2001 From: catbref Date: Mon, 4 May 2020 09:32:18 +0100 Subject: [PATCH] Fix AT transaction reference lookup/generation in light of new last-ref scheme --- src/main/java/org/qortal/at/QortalATAPI.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/qortal/at/QortalATAPI.java b/src/main/java/org/qortal/at/QortalATAPI.java index e9bc91c1..4d7c45c2 100644 --- a/src/main/java/org/qortal/at/QortalATAPI.java +++ b/src/main/java/org/qortal/at/QortalATAPI.java @@ -514,14 +514,10 @@ public class QortalATAPI extends API { return this.blockTimestamp; } - /** Returns AT account's lastReference, taking newly generated ATTransactions into account */ + /** Returns AT account's lastReference */ private byte[] getLastReference() { - // Use signature from last AT Transaction we generated - if (!this.transactions.isEmpty()) - return this.transactions.get(this.transactions.size() - 1).getTransactionData().getSignature(); - try { - // No transactions yet, so look up AT's account's last reference from repository + // Look up AT's account's last reference from repository Account atAccount = this.getATAccount(); return atAccount.getLastReference();