forked from Qortal/qortal
Fix ConcurrentModificationException in getCachedSigValidTransactions()
This commit is contained in:
parent
8e71cbd822
commit
0875c5bf3b
@ -99,10 +99,12 @@ public class TransactionImporter extends Thread {
|
|||||||
* @return a list of TransactionData objects, with valid signatures.
|
* @return a list of TransactionData objects, with valid signatures.
|
||||||
*/
|
*/
|
||||||
private List<TransactionData> getCachedSigValidTransactions() {
|
private List<TransactionData> getCachedSigValidTransactions() {
|
||||||
return this.incomingTransactions.entrySet().stream()
|
synchronized (this.incomingTransactions) {
|
||||||
.filter(t -> Boolean.TRUE.equals(t.getValue()))
|
return this.incomingTransactions.entrySet().stream()
|
||||||
.map(Map.Entry::getKey)
|
.filter(t -> Boolean.TRUE.equals(t.getValue()))
|
||||||
.collect(Collectors.toList());
|
.map(Map.Entry::getKey)
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user