mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-02 14:46:22 -04:00
ignore peers if address is null
This commit is contained in:
parent
d1d963052f
commit
1ef19722c9
2 changed files with 9 additions and 5 deletions
|
@ -656,6 +656,7 @@ public class PeerGroup implements MessageListener, ConnectionListener {
|
|||
public Set<ReportedPeer> getReportedPeers() {
|
||||
Set<ReportedPeer> all = new HashSet<>(reportedPeers);
|
||||
Set<ReportedPeer> authenticated = authenticatedPeers.values().stream()
|
||||
.filter(e -> e.address != null)
|
||||
.map(e -> new ReportedPeer(e.address, new Date()))
|
||||
.collect(Collectors.toSet());
|
||||
all.addAll(authenticated);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue