Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 508138b

Browse files
committed
Change default gossip port to 15600
1 parent b3c3282 commit 508138b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

components/p2p/params.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const (
1313
// ParametersP2P contains the definition of configuration parameters used by the p2p plugin.
1414
type ParametersP2P struct {
1515
// BindAddress defines on which multi addresses the p2p service should listen on.
16-
BindMultiAddresses []string `default:"/ip4/0.0.0.0/tcp/14666,/ip6/::/tcp/14666" usage:"the bind multi addresses for p2p connections"`
16+
BindMultiAddresses []string `default:"/ip4/0.0.0.0/tcp/15600,/ip6/::/tcp/15600" usage:"the bind multi addresses for p2p connections"`
1717

1818
ConnectionManager struct {
1919
// Defines the high watermark to use within the connection manager.

config_defaults.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
},
2020
"p2p": {
2121
"bindMultiAddresses": [
22-
"/ip4/0.0.0.0/tcp/14666",
23-
"/ip6/::/tcp/14666"
22+
"/ip4/0.0.0.0/tcp/15600",
23+
"/ip6/::/tcp/15600"
2424
],
2525
"connectionManager": {
2626
"highWatermark": 10,

deploy/ansible/roles/iota-core-node/templates/docker-compose-iota-core.yml.j2

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% for interface in ansible_interfaces -%}
44
{%- set interface_details = hostvars[inventory_hostname]['ansible_' + interface] %}
55
{%- if interface_details.ipv4 is defined and 'address' in interface_details.ipv4 -%}
6-
{%- set _ = ips.append("/ip4/" + interface_details.ipv4.address + "/tcp/14666") -%}
6+
{%- set _ = ips.append("/ip4/" + interface_details.ipv4.address + "/tcp/15600") -%}
77
{%- endif -%}
88
{% endfor -%}
99
version: '3.3'
@@ -24,7 +24,7 @@ services:
2424
soft: 16384
2525
hard: 16384
2626
ports:
27-
- "14666:14666/tcp" # P2P
27+
- "15600:15600/tcp" # P2P
2828
- "6061:6061/tcp" # pprof
2929
- "8080:14265/tcp" # REST-API
3030
- "8081:8081/tcp" # Dashboard
@@ -39,7 +39,7 @@ services:
3939
-c
4040
config.json
4141
--logger.level=debug
42-
--p2p.peers=/dns/node-01.feature/tcp/14666/p2p/12D3KooWCrjmh4dUCWfGVQT6ivzArieJB9Z3eKdy2mdEEN95NDPS
42+
--p2p.peers=/dns/node-01.feature/tcp/15600/p2p/12D3KooWCrjmh4dUCWfGVQT6ivzArieJB9Z3eKdy2mdEEN95NDPS
4343
--p2p.externalMultiAddresses={{ ips | join(',') }}
4444
--p2p.identityPrivateKey={{p2pIdentityPrvKey}}
4545
--p2p.db.path=/app/data/peerdb

pkg/network/p2p/neighbor_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func newTestPeer(_ string) *network.Peer {
101101
panic(err)
102102
}
103103

104-
addrInfo, _ := peer.AddrInfoFromString("/ip4/0.0.0.0/udp/14666/p2p/" + p2pid.String())
104+
addrInfo, _ := peer.AddrInfoFromString("/ip4/0.0.0.0/udp/15600/p2p/" + p2pid.String())
105105
return network.NewPeerFromAddrInfo(addrInfo)
106106
}
107107

tools/docker-network/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ COMMON_CONFIG="
1010
"
1111

1212
MANUALPEERING_CONFIG="
13-
--p2p.peers=/dns/node-1-validator/tcp/14666/p2p/12D3KooWRVt4Engu27jHnF2RjfX48EqiAqJbgLfFdHNt3Vn6BtJK\
13+
--p2p.peers=/dns/node-1-validator/tcp/15600/p2p/12D3KooWRVt4Engu27jHnF2RjfX48EqiAqJbgLfFdHNt3Vn6BtJK\
1414
"

0 commit comments

Comments
 (0)