Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion operator/operator-service-v3/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: Operator Service V3 documentation for Vaults below version 5 on Eth
# Operator Service V3

:::custom-warning[Operator V3 Documentation]
You must run Operator Service v3.1.10 and follow this documentation page if your **Vault version is below 5** on Ethereum or **below 3** on Gnosis. You can check your Vault contract version in the **Details** section of the Vault page or on the contract page in the block explorer. If your Vault version is higher, please refer to the [main documentation](/operator/introduction).
You must run Operator Service v3.1.14 and follow this documentation page if your **Vault version is below 5** on Ethereum or **below 3** on Gnosis. You can check your Vault contract version in the **Details** section of the Vault page or on the contract page in the block explorer. If your Vault version is higher, please refer to the [main documentation](/operator/introduction).
:::

We recommend upgrading to enjoy the full set of features. See the [V4 Upgrade Guide](./v4-upgrade-guide).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ Choose your preferred method and follow the instructions below.
<Tabs groupId="installation-methods">
<TabItem value="binary" label="Binary" default>

1. Go to the [releases page ↗](https://github.com/stakewise/v3-operator/releases/tag/v3.1.10) and find version **v3.1.10**
1. Go to the [releases page ↗](https://github.com/stakewise/v3-operator/releases/tag/v3.1.14) and find version **v3.1.14**
2. Select the binary file for your node's hardware
3. Download and decompress the file

To install, run:

```bash
curl -sSfL https://raw.githubusercontent.com/stakewise/v3-operator/v3.1.10/scripts/install.sh | sh -s
curl -sSfL https://raw.githubusercontent.com/stakewise/v3-operator/v3.1.14/scripts/install.sh | sh -s
```

The binary will be placed in `~/bin`. Add it to your PATH:
Expand All @@ -41,16 +41,16 @@ Choose your preferred method and follow the instructions below.
Pull Official Image

```bash
docker pull europe-west4-docker.pkg.dev/stakewiselabs/public/v3-operator:v3.1.10
docker pull europe-west4-docker.pkg.dev/stakewiselabs/public/v3-operator:v3.1.14
```

Alternatively, build the Docker image locally:

```bash
git clone https://github.com/stakewise/v3-operator.git
cd v3-operator
git checkout v3.1.10
docker build --pull -t europe-west4-docker.pkg.dev/stakewiselabs/public/v3-operator:v3.1.10 .
git checkout v3.1.14
docker build --pull -t europe-west4-docker.pkg.dev/stakewiselabs/public/v3-operator:v3.1.14 .
```

Run commands using this format:
Expand All @@ -59,7 +59,7 @@ Choose your preferred method and follow the instructions below.
docker run --rm -ti \
-u $(id -u):$(id -g) \
-v ~/.stakewise/:/data \
europe-west4-docker.pkg.dev/stakewiselabs/public/v3-operator:v3.1.10 \
europe-west4-docker.pkg.dev/stakewiselabs/public/v3-operator:v3.1.14 \
src/main.py COMMAND \
--flagA=123 \
--flagB=xyz
Expand All @@ -81,7 +81,7 @@ Choose your preferred method and follow the instructions below.
```bash
git clone https://github.com/stakewise/v3-operator.git
cd v3-operator
git checkout v3.1.10
git checkout v3.1.14
poetry install --only main
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,32 @@ Your execution node must be fully synced and running. Any client that supports t
- **[Geth ↗](https://launchpad.ethereum.org/en/geth)** — (Ethereum)
- **[Reth ↗](https://github.com/paradigmxyz/reth)** — (Ethereum)

:::custom-warning[Configure execution client]
Preserve event logs to ensure the Operator Service functions correctly.
Some clients require specific configuration to sync event logs and prevent event log pruning:
### Event log retention

The Operator Service reads event logs from the execution client. It only needs event logs from a recent network checkpoint onward, so you can run it against a pruned node. Retain receipts and logs from at least the following blocks:

| Network | Retain from block |
| --- | --- |
| Ethereum | 25,900,000 |
| Hoodi | 3,580,000 |
| Gnosis | 48,100,000 |

Any block at or below the value in the table works. The values are rounded down from the actual checkpoint to leave a safety margin.

:::custom-warning[Operator Service version]
Pruned nodes require Operator Service v3.1.14 or later. Earlier versions need the full event log history from the Keeper contract genesis block, so upgrade before pruning your node.
:::

### Configure pruning

<Tabs groupId="special-config" defaultValue="nethermind">
<TabItem value="nethermind" label="Nethermind">
The barrier flags set the first block whose bodies and receipts are kept, and `--History.Pruning=UseAncientBarriers` removes older history from an already synced node:
```bash
# Ethereum Mainnet
nethermind --Sync.AncientBodiesBarrier=18470089 \
--Sync.AncientReceiptsBarrier=18470089 \
nethermind --Sync.AncientBodiesBarrier=25900000 \
--Sync.AncientReceiptsBarrier=25900000 \
--History.Pruning=UseAncientBarriers

# For other networks, adjust the block number to the Keeper contract creation block
```
</TabItem>
<TabItem value="erigon" label="Erigon">
Expand All @@ -50,21 +62,19 @@ Some clients require specific configuration to sync event logs and prevent event
# Keep the latest N blocks
erigon --prune.mode=full --prune.distance=N --prune.distance.blocks=N
```
Set N to at least the current block minus the Keeper contract creation block (18470089 on Ethereum Mainnet).
Set N to at least the current block minus the block from the table above. The window moves forward as the chain grows, so increase N over time.
</TabItem>
<TabItem value="reth" label="Reth">
Add the following options to Reth command:

```bash
# Ethereum Mainnet
--prune.bodies.before=18470089 --prune.receipts.before=18470089

# For other networks, adjust the block number to the Keeper contract creation block
--prune.bodies.before=25900000 --prune.receipts.before=25900000
```
</TabItem>
</Tabs>

:::
For other networks, use the block from the table above.

### Consensus Client

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Run the Operator Service using the `start` command with your Vault address and n
<CommandSnippet template={`docker run --restart on-failure:10 \\
-u $(id -u):$(id -g) \\
-v ~/.stakewise/:/data \\
europe-west4-docker.pkg.dev/stakewiselabs/public/v3-operator:v3.1.10 \\
europe-west4-docker.pkg.dev/stakewiselabs/public/v3-operator:v3.1.14 \\
src/main.py start \\
--vault={{0xf27...10ad9}} \\
--data-dir=/data \\
Expand All @@ -41,7 +41,7 @@ src/main.py start \\
</Tabs>

:::custom-info[Configure via Environment Variables]
Instead of CLI flags, you can configure the Operator Service using environment variables. Copy [this example file ↗](https://github.com/stakewise/v3-operator/blob/v3.1.10/.env.example) and save it as `.env`. Load them before running:
Instead of CLI flags, you can configure the Operator Service using environment variables. Copy [this example file ↗](https://github.com/stakewise/v3-operator/blob/v3.1.14/.env.example) and save it as `.env`. Load them before running:
```bash
export $(grep -v '^#' .env | xargs)
```
Expand Down
Loading