forked from Qortal/qortal
Fix broken Transaction.getUnconfirmedTransactions() and getInvalidTransactions()
This commit is contained in:
parent
9e0001c4f6
commit
359a35931e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user