Skip to content
Merged
Changes from 5 commits
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
44 changes: 43 additions & 1 deletion docs/reference/cli/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2047,7 +2047,7 @@ p2p-discovery-enabled: false
</Tabs>

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`
Expand Down Expand Up @@ -2446,6 +2446,48 @@ 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`

<Tabs>
<TabItem value="Syntax" label="Syntax" default>

```bash
--p2p-static-peers-url=<URL>
```

</TabItem>
<TabItem value="Example" label="Example" >

```bash
--p2p-static-peers-url=https://my-peers-url
```

</TabItem>
<TabItem value="Environment variable" label="Environment variable" >

```bash
TEKU_P2P_STATIC_PEERS_URL=https://my-peers-url
```

</TabItem>
<TabItem value="Configuration file" label="Configuration file" >

```bash
p2p-static-peers-url: "https://my-peers-url"
```

</TabItem>
</Tabs>

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.
Comment thread
alexandratran marked this conversation as resolved.
Outdated
:::

### `p2p-subscribe-all-subnets-enabled`

<Tabs>
Expand Down