Skip to content

Commit

Permalink
Add to the unconfirmed transactions cache when importing a transaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
archived-2 committed Aug 12, 2023
1 parent eea2884 commit dd9d3fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/qortal/controller/TransactionImporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ private void importTransactionsInQueue() {

case OK: {
LOGGER.debug(() -> String.format("Imported %s transaction %s", transactionData.getType().name(), Base58.encode(transactionData.getSignature())));

// Add to the unconfirmed transactions cache
if (transactionData.getType() != Transaction.TransactionType.CHAT && unconfirmedTransactionsCache != null) {
unconfirmedTransactionsCache.add(transactionData);
}
break;
}

Expand Down

0 comments on commit dd9d3fd

Please sign in to comment.