Fix broken Transaction.getUnconfirmedTransactions() and getInvalidTransactions()

This commit is contained in:
catbref 2020-05-07 12:15:09 +01:00
parent 9e0001c4f6
commit 359a35931e

View File

@ -610,9 +610,7 @@ public abstract class Transaction {
Transaction transaction = Transaction.fromData(repository, transactionData);
if (transaction.isStillValidUnconfirmed(latestBlockData.getTimestamp()) != ValidationResult.OK)
continue;
unconfirmedTransactionsIterator.remove();
unconfirmedTransactionsIterator.remove();
}
return unconfirmedTransactions;
@ -638,10 +636,7 @@ public abstract class Transaction {
Transaction transaction = Transaction.fromData(repository, transactionData);
if (transaction.isStillValidUnconfirmed(latestBlockData.getTimestamp()) != ValidationResult.OK)
continue;
invalidTransactions.add(transactionData);
unconfirmedTransactionsIterator.remove();
invalidTransactions.add(transactionData);
}
return invalidTransactions;