forked from Qortal/qortal
Revert "Improved filtering of online accounts data."
This reverts commit c14fca5660
.
This commit is contained in:
parent
62908f867a
commit
29dcd53002
@ -743,14 +743,8 @@ public class OnlineAccountsManager {
|
|||||||
if (onlineAccounts == null)
|
if (onlineAccounts == null)
|
||||||
onlineAccounts = this.latestBlocksOnlineAccounts.get(timestamp);
|
onlineAccounts = this.latestBlocksOnlineAccounts.get(timestamp);
|
||||||
|
|
||||||
if (onlineAccounts != null) {
|
if (onlineAccounts != null)
|
||||||
// Remove accounts with matching timestamp, nonce, and public key
|
blocksOnlineAccounts.removeAll(onlineAccounts);
|
||||||
final Set<OnlineAccountData> 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())));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user