Skip to content

Commit 967b6b9

Browse files
feat: expose ev-node P2P and RPC ports in docker compose (#2513)
This exposes the default ev-node ports: - 7676 for P2P communication and peer sync - 7331 for RPC API access Fixes #2511 <!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. NOTE: PR titles should follow semantic commits: https://www.conventionalcommits.org/en/v1.0.0/ --> ## Overview <!-- Please provide an explanation of the PR, including the appropriate context, background, goal, and rationale. If there is an issue with this information, please provide a tl;dr and link the issue. Ex: Closes #<issue number> --> --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Marko <[email protected]>
1 parent 3c75c61 commit 967b6b9

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

apps/evm/single/docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ services:
5858
condition: service_started
5959
local-da:
6060
condition: service_started
61+
ports:
62+
- "7676:7676" # p2p
63+
- "7331:7331" # rpc
6164
volumes:
6265
- evm-single-data:/root/.evm-single/
6366
restart: always

apps/grpc/single/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Start the Rollkit node with:
7272
- `--da.address`: Data availability layer address
7373
- `--da.auth-token`: Authentication token for DA layer
7474
- `--da.namespace`: Namespace for DA layer (optional)
75-
- `--p2p.listen-address`: P2P listen address (default: `/ip4/0.0.0.0/tcp/26656`)
75+
- `--p2p.listen-address`: P2P listen address (default: `/ip4/0.0.0.0/tcp/7676`)
7676
- `--block-time`: Time between blocks (default: `1s`)
7777

7878
## Example: Running with Local DA

pkg/p2p/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ type P2PConfig struct {
5353

5454
| Parameter | Description | Default | Example |
5555
|-----------|-------------|---------|---------|
56-
| ListenAddress | The address where the node listens for incoming P2P connections | `/ip4/0.0.0.0/tcp/26656` | `/ip4/0.0.0.0/tcp/26656` |
57-
| Seeds | Comma-separated list of seed nodes (bootstrap nodes) | "" | `/ip4/1.2.3.4/tcp/26656/p2p/12D3KooWA8EXV3KjBxEU...,/ip4/5.6.7.8/tcp/26656/p2p/12D3KooWJN9ByvD...` |
56+
| ListenAddress | The address where the node listens for incoming P2P connections | `/ip4/0.0.0.0/tcp/7676` | `/ip4/0.0.0.0/tcp/7676` |
57+
| Seeds | Comma-separated list of seed nodes (bootstrap nodes) | "" | `/ip4/1.2.3.4/tcp/7676/p2p/12D3KooWA8EXV3KjBxEU...,/ip4/5.6.7.8/tcp/7676/p2p/12D3KooWJN9ByvD...` |
5858
| BlockedPeers | Comma-separated list of peer IDs to block | "" | `12D3KooWA8EXV3KjBxEU...,12D3KooWJN9ByvD...` |
5959
| AllowedPeers | Comma-separated list of peer IDs to explicitly allow | "" | `12D3KooWA8EXV3KjBxEU...,12D3KooWJN9ByvD...` |
6060

@@ -202,8 +202,8 @@ These metrics can be exposed via Prometheus for monitoring and alerting.
202202
conf := config.Config{
203203
RootDir: "/path/to/root",
204204
P2P: config.P2PConfig{
205-
ListenAddress: "/ip4/0.0.0.0/tcp/26656",
206-
Seeds: "/ip4/1.2.3.4/tcp/26656/p2p/12D3KooWXYZ...,/ip4/5.6.7.8/tcp/26656/p2p/12D3KooWABC...",
205+
ListenAddress: "/ip4/0.0.0.0/tcp/7676",
206+
Seeds: "/ip4/1.2.3.4/tcp/7676/p2p/12D3KooWXYZ...,/ip4/5.6.7.8/tcp/7676/p2p/12D3KooWABC...",
207207
},
208208
}
209209

pkg/rpc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func main() {
3636
myStore := store.NewKVStore(...)
3737

3838
// Start the RPC server
39-
log.Fatal(server.StartServer(myStore, "localhost:8080"))
39+
log.Fatal(server.StartServer(myStore, "localhost:7331"))
4040
}
4141
```
4242

@@ -54,7 +54,7 @@ import (
5454

5555
func main() {
5656
// Create a client
57-
storeClient := client.NewStoreClient("http://localhost:8080")
57+
storeClient := client.NewStoreClient("http://localhost:7331")
5858

5959
// Use the client to interact with the store
6060
ctx := context.Background()

0 commit comments

Comments
 (0)