Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ p2p:
listen_address: "0.0.0.0"
port: 4445
data_dir: "data/p2p"
bootstrap_nodes: ""
external_ip: ""

# Lumera Chain Configuration
lumera:
Expand Down Expand Up @@ -181,8 +179,6 @@ supernode start -d /path/to/basedir
| `p2p.listen_address` | IP address for P2P networking | **Yes** | - | `"0.0.0.0"` | Use `"0.0.0.0"` to listen on all interfaces |
| `p2p.port` | P2P communication port | **Yes** | - | `4445` | **Do not change this default value** |
| `p2p.data_dir` | Directory for P2P data storage | No | `"data/p2p"` | `"data/p2p"` | Relative paths are appended to basedir, absolute paths used as-is |
| `p2p.bootstrap_nodes` | Initial peer nodes for network discovery | No | `""` | `""` | Comma-separated list of peer addresses, leave empty for auto-discovery |
| `p2p.external_ip` | Your public IP address | No | `""` | `""` | Leave empty for auto-detection, or specify your public IP |
| `lumera.grpc_addr` | gRPC endpoint of Lumera validator node | **Yes** | - | `"localhost:9090"` | Must be accessible from supernode |
| `lumera.chain_id` | Lumera blockchain chain identifier | **Yes** | - | `"lumera"` | Must match the actual chain ID |
| `raptorq.files_dir` | Directory to store RaptorQ files | No | `"raptorq_files"` | `"raptorq_files"` | Relative paths are appended to basedir, absolute paths used as-is |
Expand Down
4 changes: 2 additions & 2 deletions supernode/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ func initP2PService(ctx context.Context, config *config.Config, lumeraClient lum
ListenAddress: config.P2PConfig.ListenAddress,
Port: config.P2PConfig.Port,
DataDir: config.GetP2PDataDir(),
BootstrapNodes: config.P2PConfig.BootstrapNodes,
ExternalIP: config.P2PConfig.ExternalIP,
BootstrapNodes: "",
ExternalIP: "",
ID: address.String(),
}

Expand Down
4 changes: 2 additions & 2 deletions supernode/cmd/supernode.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func (s *Supernode) Start(ctx context.Context) error {
ListenAddress: s.config.P2PConfig.ListenAddress,
Port: s.config.P2PConfig.Port,
DataDir: s.config.GetP2PDataDir(),
BootstrapNodes: s.config.P2PConfig.BootstrapNodes,
ExternalIP: s.config.P2PConfig.ExternalIP,
BootstrapNodes: "",
ExternalIP: "",
Comment thread
mateeullahmalik marked this conversation as resolved.
Outdated
ID: address.String(),
}

Expand Down
5 changes: 2 additions & 3 deletions supernode/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ supernode:
# Keyring Configuration
keyring:
backend: "os" # Options: test, file, os
dir: "keys" # Keyring directory in home folder
dir: "keys" # Keyring directory

# P2P Network Configuration
p2p:
listen_address: "0.0.0.0"
port: 4445
data_dir: "data/p2p" # P2P data directory in home folder
bootstrap_nodes: "" # Comma-separated list of bootstrap peer addresses
external_ip: "" # External IP address for this node (if behind NAT)


# Lumera Chain Configuration
lumera:
Expand Down
8 changes: 3 additions & 5 deletions supernode/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ type KeyringConfig struct {
}

type P2PConfig struct {
ListenAddress string `yaml:"listen_address"`
Port uint16 `yaml:"port"`
DataDir string `yaml:"data_dir"`
BootstrapNodes string `yaml:"bootstrap_nodes"`
ExternalIP string `yaml:"external_ip"`
ListenAddress string `yaml:"listen_address"`
Port uint16 `yaml:"port"`
DataDir string `yaml:"data_dir"`
}

type LumeraClientConfig struct {
Expand Down
8 changes: 3 additions & 5 deletions supernode/config/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ func CreateDefaultConfig(keyName, identity, chainID string, keyringBackend, keyr
Dir: keyringDir,
},
P2PConfig: P2PConfig{
ListenAddress: "0.0.0.0",
Port: 4445,
DataDir: "data/p2p",
BootstrapNodes: "",
ExternalIP: "",
ListenAddress: "0.0.0.0",
Port: 4445,
DataDir: "data/p2p",
},
LumeraClientConfig: LumeraClientConfig{
GRPCAddr: "localhost:9090",
Expand Down
3 changes: 0 additions & 3 deletions tests/system/config.test-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@ p2p:
listen_address: "0.0.0.0"
port: 4445
data_dir: "data/p2p" # Relative to base_dir
bootstrap_nodes: ""
external_ip: ""

# Lumera Chain Configuration
lumera:
grpc_addr: "localhost:9090"
chain_id: "testing"
timeout: 300

# RaptorQ Configuration
raptorq:
Expand Down
3 changes: 0 additions & 3 deletions tests/system/config.test-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@ p2p:
listen_address: "0.0.0.0"
port: 4447
data_dir: "data/p2p"
bootstrap_nodes: ""
external_ip: ""

# Lumera Chain Configuration
lumera:
grpc_addr: "localhost:9090"
chain_id: "testing"
timeout: 300

# RaptorQ Configuration
raptorq:
Expand Down
3 changes: 0 additions & 3 deletions tests/system/config.test-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@ p2p:
listen_address: "0.0.0.0"
port: 4449
data_dir: "data/p2p"
bootstrap_nodes: ""
external_ip: ""

# Lumera Chain Configuration
lumera:
grpc_addr: "localhost:9090"
chain_id: "testing"
timeout: 300

# RaptorQ Configuration
raptorq:
Expand Down