From 9256f35b59a0ce620653b16a116d8207cb1bde9b Mon Sep 17 00:00:00 2001 From: Matee Ullah Malik Date: Mon, 14 Jul 2025 20:35:17 +0500 Subject: [PATCH 1/2] Remove bootstrap nodes --- README.md | 4 ---- supernode/cmd/start.go | 4 ++-- supernode/cmd/supernode.go | 4 ++-- supernode/config.yml | 5 ++--- supernode/config/config.go | 8 +++----- supernode/config/save.go | 8 +++----- tests/system/config.test-1.yml | 3 --- tests/system/config.test-2.yml | 3 --- tests/system/config.test-3.yml | 3 --- 9 files changed, 12 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 23c59107..6704e341 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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 | diff --git a/supernode/cmd/start.go b/supernode/cmd/start.go index de846824..44ff1776 100644 --- a/supernode/cmd/start.go +++ b/supernode/cmd/start.go @@ -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(), } diff --git a/supernode/cmd/supernode.go b/supernode/cmd/supernode.go index 1744c495..f2979156 100644 --- a/supernode/cmd/supernode.go +++ b/supernode/cmd/supernode.go @@ -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: "", ID: address.String(), } diff --git a/supernode/config.yml b/supernode/config.yml index 90c7bed4..301347e5 100644 --- a/supernode/config.yml +++ b/supernode/config.yml @@ -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: diff --git a/supernode/config/config.go b/supernode/config/config.go index 69fc2d0f..c77af4d7 100644 --- a/supernode/config/config.go +++ b/supernode/config/config.go @@ -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 { diff --git a/supernode/config/save.go b/supernode/config/save.go index 860aaf6a..8cdd0c3e 100644 --- a/supernode/config/save.go +++ b/supernode/config/save.go @@ -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", diff --git a/tests/system/config.test-1.yml b/tests/system/config.test-1.yml index a0e39ab3..0bfe1db0 100644 --- a/tests/system/config.test-1.yml +++ b/tests/system/config.test-1.yml @@ -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: diff --git a/tests/system/config.test-2.yml b/tests/system/config.test-2.yml index 3203de76..8d43f057 100644 --- a/tests/system/config.test-2.yml +++ b/tests/system/config.test-2.yml @@ -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: diff --git a/tests/system/config.test-3.yml b/tests/system/config.test-3.yml index 359bd5c3..8a5092b9 100644 --- a/tests/system/config.test-3.yml +++ b/tests/system/config.test-3.yml @@ -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: From 665edec88c3df14df6ad870a482f909133d2bbf7 Mon Sep 17 00:00:00 2001 From: Matee ullah Malik <46045452+mateeullahmalik@users.noreply.github.com> Date: Mon, 14 Jul 2025 20:44:08 +0500 Subject: [PATCH 2/2] Update supernode/cmd/supernode.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- supernode/cmd/supernode.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/supernode/cmd/supernode.go b/supernode/cmd/supernode.go index f2979156..c72d07ef 100644 --- a/supernode/cmd/supernode.go +++ b/supernode/cmd/supernode.go @@ -83,8 +83,6 @@ func (s *Supernode) Start(ctx context.Context) error { ListenAddress: s.config.P2PConfig.ListenAddress, Port: s.config.P2PConfig.Port, DataDir: s.config.GetP2PDataDir(), - BootstrapNodes: "", - ExternalIP: "", ID: address.String(), }