Skip to content

Commit 6fcf971

Browse files
rolfyonealexandratran
authored andcommitted
added p2p-static-peers-url cli arg (Consensys#656)
* added p2p-static-peers-url cli arg adds cli arg from teku #9328 * added note about the url needing to be available * fix capitalisation of Teku * trailing space * Update docs/reference/cli/index.md --------- Co-authored-by: Alexandra Carrillo <[email protected]>
1 parent c0a70fb commit 6fcf971

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

docs/reference/cli/index.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,7 @@ p2p-discovery-enabled: false
20472047
</Tabs>
20482048

20492049
Enables or disables P2P peer discovery.
2050-
If disabled, [`p2p-static-peers`](#p2p-static-peers) defines the peer connections.
2050+
If disabled, [`p2p-static-peers`](#p2p-static-peers) or [`p2p-static-peers-url`](#p2p-static-peers-url) defines the peer connections.
20512051
The default is `true`.
20522052

20532053
### `p2p-discovery-site-local-addresses-enabled`
@@ -2446,6 +2446,47 @@ A comma-separated list of
24462446
[multiaddresses](https://docs.libp2p.io/concepts/appendix/glossary/#multiaddr) of static peers with
24472447
which to establish and maintain connections.
24482448

2449+
### `p2p-static-peers-url`
2450+
2451+
<Tabs>
2452+
<TabItem value="Syntax" label="Syntax" default>
2453+
2454+
```bash
2455+
--p2p-static-peers-url=<URL>
2456+
```
2457+
2458+
</TabItem>
2459+
<TabItem value="Example" label="Example" >
2460+
2461+
```bash
2462+
--p2p-static-peers-url=https://my-peers-url
2463+
```
2464+
2465+
</TabItem>
2466+
<TabItem value="Environment variable" label="Environment variable" >
2467+
2468+
```bash
2469+
TEKU_P2P_STATIC_PEERS_URL=https://my-peers-url
2470+
```
2471+
2472+
</TabItem>
2473+
<TabItem value="Configuration file" label="Configuration file" >
2474+
2475+
```bash
2476+
p2p-static-peers-url: "https://my-peers-url"
2477+
```
2478+
2479+
</TabItem>
2480+
</Tabs>
2481+
2482+
A URL or file that contains a list of
2483+
[multiaddresses](https://docs.libp2p.io/concepts/appendix/glossary/#multiaddr) of static peers with
2484+
which to establish and maintain connections. The file should have one peer per line.
2485+
2486+
:::note
2487+
If the URL or file is unable to load, Teku will fail to start up.
2488+
:::
2489+
24492490
### `p2p-subscribe-all-subnets-enabled`
24502491

24512492
<Tabs>

0 commit comments

Comments
 (0)