mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Behaviour change:
In the 3rd attempt we filter for INITIAL_DATA_EXCHANGE peers. Before we excluded 2 types and as PEER have been already filtered earlier we would look up for SEED_NODE. This was only called by non-seedNodes.
This commit is contained in:
parent
4d64fac401
commit
cf4d89dea2
1 changed files with 1 additions and 2 deletions
|
@ -535,8 +535,7 @@ public final class PeerManager implements ConnectionListener, PersistedDataHost
|
|||
"Lets try to remove any connection which is not " +
|
||||
"of type DIRECT_MSG_PEER or INITIAL_DATA_REQUEST.", maxConnectionsNonDirect);
|
||||
candidates = allConnections.stream()
|
||||
.filter(e -> e.getConnectionState().getPeerType() != PeerType.DIRECT_MSG_PEER &&
|
||||
e.getConnectionState().getPeerType() != PeerType.INITIAL_DATA_EXCHANGE)
|
||||
.filter(e -> e.getConnectionState().getPeerType() == PeerType.INITIAL_DATA_EXCHANGE)
|
||||
.sorted(Comparator.comparingLong(o -> o.getConnectionState().getLastInitialDataMsgTimeStamp()))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue