diff --git a/operator/operator-service-v3/overview.mdx b/operator/operator-service-v3/overview.mdx index 9aaf3ec..8d66196 100644 --- a/operator/operator-service-v3/overview.mdx +++ b/operator/operator-service-v3/overview.mdx @@ -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). diff --git a/operator/operator-service-v3/run-operator-service-v3/installation.mdx b/operator/operator-service-v3/run-operator-service-v3/installation.mdx index 17af0ad..bfb169b 100644 --- a/operator/operator-service-v3/run-operator-service-v3/installation.mdx +++ b/operator/operator-service-v3/run-operator-service-v3/installation.mdx @@ -14,14 +14,14 @@ Choose your preferred method and follow the instructions below. - 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: @@ -41,7 +41,7 @@ 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: @@ -49,8 +49,8 @@ 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 - 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: @@ -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 @@ -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 ``` diff --git a/operator/operator-service-v3/run-operator-service-v3/prerequisites.mdx b/operator/operator-service-v3/run-operator-service-v3/prerequisites.mdx index f1a1f86..170074a 100644 --- a/operator/operator-service-v3/run-operator-service-v3/prerequisites.mdx +++ b/operator/operator-service-v3/run-operator-service-v3/prerequisites.mdx @@ -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 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 ``` @@ -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. 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 ``` -::: +For other networks, use the block from the table above. ### Consensus Client diff --git a/operator/operator-service-v3/run-operator-service-v3/start-operator.mdx b/operator/operator-service-v3/run-operator-service-v3/start-operator.mdx index 37d66e4..4dc5e84 100644 --- a/operator/operator-service-v3/run-operator-service-v3/start-operator.mdx +++ b/operator/operator-service-v3/run-operator-service-v3/start-operator.mdx @@ -24,7 +24,7 @@ Run the Operator Service using the `start` command with your Vault address and n :::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) ```