Skip to content

Commit

Permalink
Chain AT-transaction references to avoid duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
catbref committed Dec 10, 2023
1 parent a2ccf0e commit 5054773
Show file tree
Hide file tree
Showing 2 changed files with 429 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/qortal/at/QortalATAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,10 @@ private long getNextTransactionTimestamp() {

/** Returns AT account's lastReference */
private byte[] getLastReference() {
// If we have transactions already, then use signature from last transaction
if (!this.transactions.isEmpty())
return this.transactions.get(this.transactions.size() - 1).getTransactionData().getSignature();

try {
// Look up AT's account's last reference from repository
Account atAccount = this.getATAccount();
Expand Down
Loading

0 comments on commit 5054773

Please sign in to comment.