Skip to content

Commit

Permalink
update l2 to scroll_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
chzyer committed Jun 5, 2024
1 parent 2137f24 commit 79caf6f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions prover/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ Then, you can run geth using the following command:
- You can replace `/data/mainnet` with the directory that you intend to put the blockchain data in. We recommend using a filesystem that supports snapshots in case of data corruption.
- As a default, you can use https://ethereum-rpc.publicnode.com as the ETH_ENDPOINT.

**Setting l2 config in prover.json**
- If running the Scroll Archive node on the same host as the prover, set l2 to http://172.17.0.1:8545
- If running the Scroll Archive node on a different host as the prover, set l2 to the Public IP or DNS name of your archive node (with the correct port number).
- If you can't run the Scroll Archive node, set l2 to empty.
**Setting `scroll_endpoint` config in prover.json**
- If running the Scroll Archive node on the same host as the prover, set `scroll_endpoint` to http://172.17.0.1:8545
- If running the Scroll Archive node on a different host as the prover, set `scroll_endpoint` to the Public IP or DNS name of your archive node (with the correct port number).
- If you can't run the Scroll Archive node, set `scroll_endpoint` to empty.

> 💡 It's strongly recommended to whitelist only your prover node for accessing the execution node.
Expand Down Expand Up @@ -94,19 +94,19 @@ If using HTTPS, also move your cert and key into the config folder.

```json
{
"l2": "<Scroll Mainnet Archive Node RPC endpoint>",
"l2_chain_id": 534352,
"scroll_endpoint": "<Scroll Mainnet Archive Node RPC endpoint>",
"scroll_chain_id": 534352,
"server": {
"tls": "/a/b/c"
}
}
```

Below are the configs that you **need to provide**:
* **l2**:
* **scroll_endpoint**:
* the endpoint of scroll, for example: `http://localhost:8545`.
* To setup the scroll archive node, please check this guide: [Setup the Scroll Archive Node](#3-setup-the-scroll-archive-node)
* If you cannot run the Scroll Archive Node, you can temporarily set the **l2** field to blank.
* If you cannot run the Scroll Archive Node, you can temporarily set the **scroll_endpoint** field to blank.

* **server.tls**:
* the path to the tls cert and key.
Expand Down Expand Up @@ -176,8 +176,8 @@ If using HTTPS, also move your cert and key into the config folder.

```json
{
"l2": "<Scroll Mainnet Archive Node RPC endpoint>",
"l2_chain_id": 534352,
"scroll_endpoint": "<Scroll Mainnet Archive Node RPC endpoint>",
"scroll_chain_id": 534352,
"server": {
"tls": "/a/b/c"
}
Expand All @@ -186,10 +186,10 @@ If using HTTPS, also move your cert and key into the config folder.

Below are the configs that you **need to provide**:

* **l2**:
* **scroll_endpoint**:
* the endpoint of scroll, for example: `http://localhost:8545`.
* To setup the scroll archive node, please check this guide: [Setup the Scroll Archive Node](#3-setup-the-scroll-archive-node)
* If you cannot run the Scroll Archive Node, you can temporarily set the **l2** field to blank.
* If you cannot run the Scroll Archive Node, you can temporarily set the **scroll_endpoint** field to blank.

* **server.tls**:
* the path to the tls cert and key.
Expand Down
4 changes: 2 additions & 2 deletions prover/holesky/config/prover.json.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"l2": "<Scroll Mainnet Archive Node RPC endpoint>",
"l2_chain_id": 534352,
"scroll_endpoint": "<Scroll Mainnet Archive Node RPC endpoint>",
"scroll_chain_id": 534352,
"server": {
"tls": "/a/b/c"
}
Expand Down
4 changes: 2 additions & 2 deletions prover/mainnet/config/prover.json.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"l2": "<Scroll Mainnet Archive Node RPC endpoint>",
"l2_chain_id": 534352,
"scroll_endpoint": "<Scroll Mainnet Archive Node RPC endpoint>",
"scroll_chain_id": 534352,
"server": {
"tls": "/a/b/c"
}
Expand Down

0 comments on commit 79caf6f

Please sign in to comment.