forked from Qortal/qortal
Fixed bug causing duplicate AT entries in local array.
This commit is contained in:
parent
8b51590844
commit
e1043ceacb
@ -143,7 +143,8 @@ public abstract class RepositoryManager {
|
||||
|
||||
for (ATTransactionData atTransactionData : atTransactions) {
|
||||
ATData atData = repository.getATRepository().fromATAddress(atTransactionData.getATAddress());
|
||||
if (!ats.contains(atData)) {
|
||||
boolean hasExistingEntry = ats.stream().anyMatch(a -> Objects.equals(a.getATAddress(), atTransactionData.getATAddress()));
|
||||
if (!hasExistingEntry) {
|
||||
ats.add(atData);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user