Skip to content

Commit 3c31c92

Browse files
joshuacolvin0hkalodner
authored andcommitted
Use same ports as classic
* Use 8547 for rpc port, 8548 for websocket to keep the same as classic * cleanup docker-compose port usages
1 parent c6c35a9 commit 3c31c92

File tree

4 files changed

+34
-34
lines changed

4 files changed

+34
-34
lines changed

cmd/conf/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ type HTTPConfig struct {
201201

202202
var HTTPConfigDefault = HTTPConfig{
203203
Addr: node.DefaultConfig.HTTPHost,
204-
Port: 7545,
204+
Port: 8547,
205205
API: append(node.DefaultConfig.HTTPModules, "eth"),
206206
RPCPrefix: node.DefaultConfig.HTTPPathPrefix,
207207
CORSDomain: node.DefaultConfig.HTTPCors,
@@ -228,7 +228,7 @@ type WSConfig struct {
228228

229229
var WSConfigDefault = WSConfig{
230230
Addr: node.DefaultConfig.WSHost,
231-
Port: 7546,
231+
Port: 8548,
232232
API: append(node.DefaultConfig.WSModules, "eth"),
233233
RPCPrefix: node.DefaultConfig.WSPathPrefix,
234234
Origins: node.DefaultConfig.WSOrigins,

docker-compose.yaml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ services:
1818
- ./blockscout/nitro.env
1919
environment:
2020
ETHEREUM_JSONRPC_VARIANT: 'geth'
21-
ETHEREUM_JSONRPC_HTTP_URL: http://sequencer:7545/
21+
ETHEREUM_JSONRPC_HTTP_URL: http://sequencer:8547/
2222
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: "true"
2323
DATABASE_URL: postgresql://postgres:@postgres:5432/blockscout?ssl=false
2424
ECTO_USE_SSL: "false"
2525
ports:
26-
- 4000:4000
26+
- "127.0.0.1:4000:4000"
2727

2828
postgres:
2929
image: postgres:13.6
@@ -36,19 +36,19 @@ services:
3636
volumes:
3737
- "postgres-data:/var/lib/postgresql/data"
3838
ports:
39-
- 7432:5432
39+
- "127.0.0.1:7432:5432"
4040

4141
redis:
4242
image: redis:6.2.6
4343
ports:
44-
- "6379:6379"
44+
- "127.0.0.1:6379:6379"
4545

4646
geth:
4747
image: ethereum/client-go:stable
4848
ports:
49-
- "8545:8545"
50-
- "8546:8546"
51-
- "30303:30303"
49+
- "127.0.0.1:8545:8545"
50+
- "127.0.0.1:8546:8546"
51+
- "127.0.0.1:30303:30303"
5252
volumes:
5353
- "l1data:/root/.ethereum"
5454
- "l1keystore:/keystore"
@@ -61,13 +61,13 @@ services:
6161
context: .
6262
target: nitro-node-dev
6363
ports:
64-
- "7545:7545"
65-
- "7546:7546"
66-
- "9642:9642"
64+
- "127.0.0.1:8547:8547"
65+
- "127.0.0.1:8548:8548"
66+
- "127.0.0.1:9642:9642"
6767
volumes:
6868
- "seqdata:/home/user/.arbitrum/local/nitro"
6969
- "config:/config"
70-
command: --conf.file /config/sequencer_config.json --node.feed.output.enable --node.feed.output.port 9642 --http.vhosts * --http.api net,web3,eth,txpool,debug --http.corsdomain * --node.seq-coordinator.my-url ws://sequencer:7546
70+
command: --conf.file /config/sequencer_config.json --node.feed.output.enable --node.feed.output.port 9642 --http.vhosts * --http.api net,web3,eth,txpool,debug --http.corsdomain * --node.seq-coordinator.my-url ws://sequencer:8548
7171
depends_on:
7272
- geth
7373
- redis
@@ -78,12 +78,12 @@ services:
7878
context: .
7979
target: nitro-node-dev
8080
ports:
81-
- "7545"
82-
- "7546"
81+
- "127.0.0.1:8647:8547"
82+
- "127.0.0.1:8648:8548"
8383
volumes:
8484
- "seqdata_b:/home/user/.arbitrum/local/nitro"
8585
- "config:/config"
86-
command: --conf.file /config/sequencer_config.json --node.seq-coordinator.my-url ws://sequencer_b:7546
86+
command: --conf.file /config/sequencer_config.json --node.seq-coordinator.my-url ws://sequencer_b:8548
8787
depends_on:
8888
- geth
8989
- redis
@@ -94,12 +94,12 @@ services:
9494
context: .
9595
target: nitro-node-dev
9696
ports:
97-
- "7545"
98-
- "7546"
97+
- "127.0.0.1:8747:8547"
98+
- "127.0.0.1:8748:8548"
9999
volumes:
100100
- "seqdata_c:/home/user/.arbitrum/local/nitro"
101101
- "config:/config"
102-
command: --conf.file /config/sequencer_config.json --node.seq-coordinator.my-url ws://sequencer_c:7546
102+
command: --conf.file /config/sequencer_config.json --node.seq-coordinator.my-url ws://sequencer_c:8548
103103
depends_on:
104104
- geth
105105
- redis
@@ -110,12 +110,12 @@ services:
110110
context: .
111111
target: nitro-node-dev
112112
ports:
113-
- "7545"
114-
- "7546"
113+
- "127.0.0.1:8847:8547"
114+
- "127.0.0.1:8848:8548"
115115
volumes:
116116
- "seqdata_d:/home/user/.arbitrum/local/nitro"
117117
- "config:/config"
118-
command: --conf.file /config/sequencer_config.json --node.seq-coordinator.my-url ws://sequencer_d:7546
118+
command: --conf.file /config/sequencer_config.json --node.seq-coordinator.my-url ws://sequencer_d:8548
119119
depends_on:
120120
- geth
121121
- redis
@@ -126,8 +126,8 @@ services:
126126
context: .
127127
target: nitro-node-dev
128128
ports:
129-
- "7545"
130-
- "7546"
129+
- "127.0.0.1:8047:8547"
130+
- "127.0.0.1:8048:8548"
131131
volumes:
132132
- "unsafestaker-data:/home/user/.arbitrum/local/nitro"
133133
- "l1keystore:/home/user/l1keystore"
@@ -143,8 +143,8 @@ services:
143143
context: .
144144
target: nitro-node-dev
145145
ports:
146-
- "7547"
147-
- "7548"
146+
- "127.0.0.1:8147:8547"
147+
- "127.0.0.1:8148:8548"
148148
volumes:
149149
- "poster-data:/home/user/.arbitrum/local/nitro"
150150
- "l1keystore:/home/user/l1keystore"
@@ -160,13 +160,13 @@ services:
160160
context: .
161161
target: nitro-node-dev
162162
ports:
163-
- "7547:7547"
164-
- "7548:7548"
163+
- "127.0.0.1:8247:8547"
164+
- "127.0.0.1:8248:8548"
165165
volumes:
166166
- "validator-data:/home/user/.arbitrum/local/nitro"
167167
- "l1keystore:/home/user/l1keystore"
168168
- "config:/config"
169-
command: --conf.file /config/validator_config.json --http.port 7547 --http.api net,web3,arb,debug --ws.port 7548
169+
command: --conf.file /config/validator_config.json --http.port 8547 --http.api net,web3,arb,debug --ws.port 8548
170170
depends_on:
171171
- sequencer
172172

@@ -185,9 +185,9 @@ services:
185185
context: .
186186
target: nitro-node-dev
187187
ports:
188-
- "9652:9652"
188+
- "127.0.0.1:9652:9652"
189189
entrypoint: bin/relay
190-
command: --node.feed.output.port 9652 --node.feed.input.url ws://sequencer:9642/feed
190+
command: --node.feed.output.port 9652 --node.feed.input.url ws://sequencer:9652
191191

192192
volumes:
193193
l1data:

testnode-scripts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function main() {
1111
.options({
1212
redisUrl: { string: true, default: "redis://redis:6379" },
1313
l1url: { string: true, default: "ws://geth:8546" },
14-
l2url: { string: true, default: "ws://sequencer:7546" },
14+
l2url: { string: true, default: "ws://sequencer:8548" },
1515
})
1616
.options(stressOptions)
1717
.command(bridgeFundsCommand)

testnode-scripts/redis.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ async function writeRedisPriorities(redisUrl: string, priorities: number) {
3333
let prio_sequencers = "bcd"
3434
let priostring = ""
3535
if (priorities == 0) {
36-
priostring = "ws://sequencer:7546"
36+
priostring = "ws://sequencer:8548"
3737
}
3838
if (priorities > prio_sequencers.length) {
3939
priorities = prio_sequencers.length
4040
}
4141
for (let index = 0; index < priorities; index++) {
42-
const this_prio = "ws://sequencer_" + prio_sequencers.charAt(index) + ":7546"
42+
const this_prio = "ws://sequencer_" + prio_sequencers.charAt(index) + ":8548"
4343
if (index != 0) {
4444
priostring = priostring + ","
4545
}

0 commit comments

Comments
 (0)