mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Merge pull request #4104 from cbeams/fix-4103
Avoid startup failure when bannedSeedNodes arg is empty
This commit is contained in:
commit
13604b61e5
@ -81,7 +81,11 @@ public class DefaultSeedNodeRepository implements SeedNodeRepository {
|
||||
});
|
||||
|
||||
// filter
|
||||
cache.removeAll(config.bannedSeedNodes.stream().map(NodeAddress::new).collect(Collectors.toSet()));
|
||||
cache.removeAll(
|
||||
config.bannedSeedNodes.stream()
|
||||
.filter(n -> !n.isEmpty())
|
||||
.map(NodeAddress::new)
|
||||
.collect(Collectors.toSet()));
|
||||
|
||||
log.info("Seed nodes: {}", cache);
|
||||
} catch (Throwable t) {
|
||||
|
Loading…
Reference in New Issue
Block a user