You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/oracle-operator-manual.md
+65-22Lines changed: 65 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,10 @@ Due to the lack of native communication between these two networks, Lido employs
9
9
2. Launch and sync an [archive](https://ethereum.org/en/developers/docs/nodes-and-clients/#archive-node) (archive data for at least 2 weeks) Execution Layer node with JSON-RPC endpoint enabled.
10
10
3. Launch and sync an [archive](https://ethereum.org/en/developers/docs/nodes-and-clients/#archive-node) Consensus Layer node with API endpoint enabled.
11
11
4. Launch and sync a [Keys API Service](https://github.com/lidofinance/lido-keys-api).
12
-
5. Launch the accountingand ejector modules of Oracle.
12
+
5. Launch the **accounting**, **ejector**, and **csm** modules of the Oracle.
13
13
6.[**Optional**] Add alerts to Oracle's Prometheus metrics.
14
-
7. In case of mainnet share your address and intention to join the Oracle set with public. You need to publish it on Twitter and also write a message with a twitter link under Onboarding post on [the Research forum](https://research.lido.fi/).
15
-
8. Propose your Oracle's ethereum address to Lido Team to vote on your address being added to the Oracle Members.
14
+
7. In case of mainnet, share your address and intention to join the Oracle set with the public. You need to publish it on Twitter and also write a message with a Twitter link under the Onboarding post on [the Research forum](https://research.lido.fi/). You need to publish it on Twitter and also write a message with a twitter link under the Onboarding post on [the Research forum](https://research.lido.fi/).
15
+
8. Propose your Oracle's Ethereum address to the Lido team to vote on adding your address to the Oracle Members.
16
16
17
17
## Intro
18
18
@@ -113,45 +113,45 @@ The latest updates can be found in the [Expansion of Lido on Ethereum Oracle set
113
113
114
114
### Execution Client Node
115
115
116
-
To prepare the report, Oracle fetches up to 10 days old events, makes historical requests for balance data and makes simulated reports on historical blocks. This requires an [archive](https://ethereum.org/en/developers/docs/nodes-and-clients/#archive-node) execution node.
117
-
Oracle needs two weeks of archived data.
116
+
To prepare reports, the Oracle might fetch a few months' worth of old events. It also makes historical requests for balance data and simulates reports on historical blocks. This requires an [archive](https://ethereum.org/en/developers/docs/nodes-and-clients/#archive-node) execution node.
To calculate some metrics for bunker mode Oracle needs [archive](https://ethereum.org/en/developers/docs/nodes-and-clients/#archive-node) consensus node.
CSM module of the Oracle uses a cache to store per-epoch data of network-wide validator performance. It takes a significant amount of time to collect the data from scratch. That's why it's encouraged to set up a persistent cache location for the oracle outside of a Docker container in order to keep the cache in case of container destruction for maintenance purposes.
235
+
236
+
The `CACHE_PATH` environment variable sets the path to a directory where the oracle will store its cache. Run the container with the additional arguments:
237
+
238
+
```shell
239
+
docker run -d --name lido-oracle-csm \
240
+
"...required_variables_from_the_example_above" \
241
+
--env "CACHE_PATH=/app/cache" \
242
+
--volume "/var/lib/lido_csm_cache/:/app/cache"
243
+
lidofinance/oracle@<image-hash> csm
244
+
```
245
+
246
+
Make sure the correct permissions are set up for the mounted directory. The UID of the oracle process in the image provided by Lido is `33`, and it might require changing the owner of the directory on the host machine:
0 commit comments