From cb4db726812fe26f733a6a716ca494627b26d070 Mon Sep 17 00:00:00 2001 From: Paul Harris Date: Mon, 28 Apr 2025 07:08:46 +1000 Subject: [PATCH 1/5] added p2p-static-peers-url cli arg adds cli arg from teku #9328 --- docs/reference/cli/index.md | 39 ++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/docs/reference/cli/index.md b/docs/reference/cli/index.md index ed3d95fab..f73f10d24 100644 --- a/docs/reference/cli/index.md +++ b/docs/reference/cli/index.md @@ -2047,7 +2047,7 @@ p2p-discovery-enabled: false Enables or disables P2P peer discovery. -If disabled, [`p2p-static-peers`](#p2p-static-peers) defines the peer connections. +If disabled, [`p2p-static-peers`](#p2p-static-peers) or [`p2p-static-peers-url`](#p2p-static-peers-url) defines the peer connections. The default is `true`. ### `p2p-discovery-site-local-addresses-enabled` @@ -2446,6 +2446,43 @@ A comma-separated list of [multiaddresses](https://docs.libp2p.io/concepts/appendix/glossary/#multiaddr) of static peers with which to establish and maintain connections. +### `p2p-static-peers-url` + + + + +```bash +--p2p-static-peers-url= +``` + + + + +```bash +--p2p-static-peers-url=https://my-peers-url +``` + + + + +```bash +TEKU_P2P_STATIC_PEERS_URL=https://my-peers-url +``` + + + + +```bash +p2p-static-peers-url: "https://my-peers-url" +``` + + + + +A URL or file that contains a list of +[multiaddresses](https://docs.libp2p.io/concepts/appendix/glossary/#multiaddr) of static peers with +which to establish and maintain connections. The file should have one peer per line. + ### `p2p-subscribe-all-subnets-enabled` From c7d928c455315ec32a642b0bcd872d7d8ce18f42 Mon Sep 17 00:00:00 2001 From: Paul Harris Date: Mon, 28 Apr 2025 10:42:34 +1000 Subject: [PATCH 2/5] added note about the url needing to be available --- docs/reference/cli/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/reference/cli/index.md b/docs/reference/cli/index.md index f73f10d24..41dd7e957 100644 --- a/docs/reference/cli/index.md +++ b/docs/reference/cli/index.md @@ -2483,6 +2483,11 @@ A URL or file that contains a list of [multiaddresses](https://docs.libp2p.io/concepts/appendix/glossary/#multiaddr) of static peers with which to establish and maintain connections. The file should have one peer per line. +:::note + +If the URL or file is unable to be loaded, teku will fail to start up. +::: + ### `p2p-subscribe-all-subnets-enabled` From 1ac13337ab567b5829752cc3673fdb388a3bd686 Mon Sep 17 00:00:00 2001 From: Paul Harris Date: Mon, 28 Apr 2025 19:12:37 +1000 Subject: [PATCH 3/5] fix capitalisation of Teku --- docs/reference/cli/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/cli/index.md b/docs/reference/cli/index.md index 41dd7e957..81c51acf4 100644 --- a/docs/reference/cli/index.md +++ b/docs/reference/cli/index.md @@ -2485,7 +2485,7 @@ which to establish and maintain connections. The file should have one peer per l :::note -If the URL or file is unable to be loaded, teku will fail to start up. +If the URL or file is unable to be loaded, Teku will fail to start up. ::: ### `p2p-subscribe-all-subnets-enabled` From c901a5c0f9727114b18afe1fa9fcad9b735dabf3 Mon Sep 17 00:00:00 2001 From: Paul Harris Date: Mon, 28 Apr 2025 19:16:13 +1000 Subject: [PATCH 4/5] trailing space --- docs/reference/cli/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/cli/index.md b/docs/reference/cli/index.md index 81c51acf4..4741c4cdd 100644 --- a/docs/reference/cli/index.md +++ b/docs/reference/cli/index.md @@ -2479,7 +2479,7 @@ p2p-static-peers-url: "https://my-peers-url" -A URL or file that contains a list of +A URL or file that contains a list of [multiaddresses](https://docs.libp2p.io/concepts/appendix/glossary/#multiaddr) of static peers with which to establish and maintain connections. The file should have one peer per line. From e40fdbf46949cab48c9c8b09876294f90bf39625 Mon Sep 17 00:00:00 2001 From: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com> Date: Mon, 28 Apr 2025 12:43:28 -0700 Subject: [PATCH 5/5] Update docs/reference/cli/index.md --- docs/reference/cli/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/reference/cli/index.md b/docs/reference/cli/index.md index 4741c4cdd..210f25317 100644 --- a/docs/reference/cli/index.md +++ b/docs/reference/cli/index.md @@ -2484,8 +2484,7 @@ A URL or file that contains a list of which to establish and maintain connections. The file should have one peer per line. :::note - -If the URL or file is unable to be loaded, Teku will fail to start up. +If the URL or file is unable to load, Teku will fail to start up. ::: ### `p2p-subscribe-all-subnets-enabled`