File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
teku/src/main/java/tech/pegasys/teku/cli/options Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -606,22 +606,22 @@ private OptionalInt getP2pUpperBound() {
606606 return p2pUpperBound ;
607607 }
608608
609- private List <String > getStaticPeersList () {
610- final List <String > staticPeers = new ArrayList <>(p2pStaticPeers );
611-
612- if (p2pStaticPeersUrl != null ) {
613- try {
614- final List <String > peersFromUrl = MultilineEntriesReader .readEntries (p2pStaticPeersUrl );
615- staticPeers .addAll (peersFromUrl );
616- } catch (final Exception e ) {
617- throw new InvalidConfigurationException (
618- "Error reading static peers from " + p2pStaticPeersUrl , e );
619- }
620- }
609+ private List <String > getStaticPeersList () {
610+ final List <String > staticPeers = new ArrayList <>(p2pStaticPeers );
621611
622- return staticPeers ;
612+ if (p2pStaticPeersUrl != null ) {
613+ try {
614+ final List <String > peersFromUrl = MultilineEntriesReader .readEntries (p2pStaticPeersUrl );
615+ staticPeers .addAll (peersFromUrl );
616+ } catch (final Exception e ) {
617+ throw new InvalidConfigurationException (
618+ "Error reading static peers from " + p2pStaticPeersUrl , e );
619+ }
623620 }
624621
622+ return staticPeers ;
623+ }
624+
625625 private List <String > getBootnodes () {
626626 final List <String > bootnodes = new ArrayList <>();
627627
You can’t perform that action at this time.
0 commit comments