diff --git a/src/main/java/org/qortal/network/Network.java b/src/main/java/org/qortal/network/Network.java index d1abba8c..a04921b3 100644 --- a/src/main/java/org/qortal/network/Network.java +++ b/src/main/java/org/qortal/network/Network.java @@ -1001,6 +1001,9 @@ public class Network { for (PeerData peerData : peers) { LOGGER.debug(() -> String.format("Deleting old peer %s from repository", peerData.getAddress().toString())); repository.getNetworkRepository().delete(peerData.getAddress()); + + // Delete from known peer cache too + this.allKnownPeers.remove(peerData); } repository.saveChanges();