From 548fa2dc9c83686d8477bd03dd4f89decaf72f17 Mon Sep 17 00:00:00 2001 From: Barnabas Busa Date: Fri, 18 Aug 2023 14:55:40 +0200 Subject: [PATCH] add static peers to erigon --- src/el/erigon/erigon_launcher.star | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/el/erigon/erigon_launcher.star b/src/el/erigon/erigon_launcher.star index 55c1ffa..d4ba03c 100644 --- a/src/el/erigon/erigon_launcher.star +++ b/src/el/erigon/erigon_launcher.star @@ -136,8 +136,6 @@ def get_config( "--ws", "--allow-insecure-unlock", "--nat=extip:" + PRIVATE_IP_ADDRESS_PLACEHOLDER, - "--nodiscover", - "--staticpeers={0}".format(boot_node_1.enode), "--http", "--http.addr=0.0.0.0", "--http.corsdomain=*", @@ -150,6 +148,7 @@ def get_config( if len(existing_el_clients) > 0: cmd.append("--bootnodes=" + ",".join([ctx.enode for ctx in existing_el_clients[:package_io.MAX_ENODE_ENTRIES]])) + cmd.append("--staticpeers=" + ",".join([ctx.enode for ctx in existing_el_clients[:package_io.MAX_ENODE_ENTRIES]])) if len(extra_params) > 0: