From 29dcd5300233636df0ddd52cb6c63e63caf6ba25 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Sun, 16 Jul 2023 20:04:45 +0100 Subject: [PATCH] Revert "Improved filtering of online accounts data." This reverts commit c14fca5660c5dc0b833075ef7e978a919965b19d. --- .../org/qortal/controller/OnlineAccountsManager.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/qortal/controller/OnlineAccountsManager.java b/src/main/java/org/qortal/controller/OnlineAccountsManager.java index 5e64161d..224228b8 100644 --- a/src/main/java/org/qortal/controller/OnlineAccountsManager.java +++ b/src/main/java/org/qortal/controller/OnlineAccountsManager.java @@ -743,14 +743,8 @@ public class OnlineAccountsManager { if (onlineAccounts == null) onlineAccounts = this.latestBlocksOnlineAccounts.get(timestamp); - if (onlineAccounts != null) { - // Remove accounts with matching timestamp, nonce, and public key - final Set finalOnlineAccounts = onlineAccounts; - blocksOnlineAccounts.removeIf(a1 -> finalOnlineAccounts.stream() - .anyMatch(a2 -> a2.getTimestamp() == a1.getTimestamp() && - Objects.equals(a2.getNonce(), a1.getNonce()) && - Arrays.equals(a2.getPublicKey(), a1.getPublicKey()))); - } + if (onlineAccounts != null) + blocksOnlineAccounts.removeAll(onlineAccounts); } /**