forked from Qortal/qortal
Add to the unconfirmed transactions cache when importing a transaction.
This commit is contained in:
parent
eea2884112
commit
dd9d3fdb22
@ -295,6 +295,11 @@ public class TransactionImporter extends Thread {
|
|||||||
|
|
||||||
case OK: {
|
case OK: {
|
||||||
LOGGER.debug(() -> String.format("Imported %s transaction %s", transactionData.getType().name(), Base58.encode(transactionData.getSignature())));
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user