Add to the unconfirmed transactions cache when importing a transaction.

This commit is contained in:
CalDescent 2023-08-12 19:27:19 +01:00
parent eea2884112
commit dd9d3fdb22

View File

@ -295,6 +295,11 @@ public class TransactionImporter extends Thread {
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;
}