Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(website): update node running guides #14400

Merged
merged 5 commits into from
Aug 8, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,16 @@ Click `Write` and confirm the transaction in your wallet.

### Open .env file in `simple-taiko-node`

Open the `.env` (or `.env.l3` for Eldfell L3 proposers) file in the `simple-taiko-node` directory.
For Grimsvotn L2:
```sh
nano .env
```

For Eldfell L3:
2manslkh marked this conversation as resolved.
Show resolved Hide resolved

```sh
nano .env.l3
```

### Set environment variables to enable a proposer

Expand All @@ -72,9 +81,25 @@ Open the `.env` (or `.env.l3` for Eldfell L3 proposers) file in the `simple-taik

Set the following environment variables to enable your node as a proposer:

- Set `ENABLE_PROPOSER` to `true` (replacing the default `false` with `true`).
- Set `L1_PROPOSER_PRIVATE_KEY` (or `L2_PROPOSER_PRIVATE_KEY` for Eldfell L3 proposers) to that of your wallet's private key; it will need some TTKO/TTKOe on Sepolia/Grimsvotn to propose blocks (if using MetaMask, follow these directions to [retrieve the private key](https://metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-export-an-account-s-private-key)).
- Set `L2_SUGGESTED_FEE_RECIPIENT` (or `L3_SUGGESTED_FEE_RECIPIENT` for Eldfell L3 proposers) to the recipient of L2/L3 ETH rewards.
For Grimsvotn L2 `.env`:

```sh
ENABLE_PROPOSER=true # change from false to true
# A L1 account (with balance) private key who will send TaikoL1.proposeBlock transactions
L1_PROPOSER_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000000 # your wallet's private key
# A L2 account address who will be the tx fee beneficiary of the L2 blocks that you proposed
L2_SUGGESTED_FEE_RECIPIENT=0x0000000000000000000000000000000000000000 # the recipient of L2/L3 ETH rewards.
```

For Eldfell L3 `.env.l3`:

```sh
ENABLE_PROPOSER=true # change from false to true
# A L2 account (with balance) private key who will send TaikoL1.proposeBlock transactions
L2_PROPOSER_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000000 # your wallet's private key
# A L3 account address who will be the tx fee beneficiary of the L3 blocks that you proposed
L3_SUGGESTED_FEE_RECIPIENT=0x0000000000000000000000000000000000000000 # the recipient of L2/L3 ETH rewards.
```

### Verify proposer logs

Expand Down
31 changes: 28 additions & 3 deletions packages/website/pages/docs/guides/run-a-node/enable-a-prover.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,19 @@ This guide will help you enable your Taiko node as a prover. Read more about pro

<Steps>
### Open the .env file in `simple-taiko-node`
Open the `.env` (or `.env.l3` for Eldfell L3 provers) file in the `simple-taiko-node` directory.

For Grimsvotn L2:
2manslkh marked this conversation as resolved.
Show resolved Hide resolved

```sh
nano .env
```

For Eldfell L3:
2manslkh marked this conversation as resolved.
Show resolved Hide resolved

```sh
nano .env.l3
```


### Set environment variables to enable prover

Expand All @@ -41,8 +53,21 @@ Open the `.env` (or `.env.l3` for Eldfell L3 provers) file in the `simple-taiko-

Set the following environment variables to enable your node as a prover:

- Set `ENABLE_PROVER` to `true` (replacing the default `false` with `true`).
- Set `L1_PROVER_PRIVATE_KEY` (or `L2_PROVER_PRIVATE_KEY` for Eldfell L3 provers) to that of your wallet's private key; it will need some ETH on Sepolia to prove blocks (if using MetaMask, follow these directions to [retrieve the private key](https://metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-export-an-account-s-private-key)).
For Grimsvotn L2 `.env`:

```sh
ENABLE_PROVER=true # change from false to true
# A L1 account (with balance) private key which will send the TaikoL1.proveBlock transactions.
L1_PROVER_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000000 # your prover's private key
```

For Eldfell L3 `.env.l3`:

```sh
ENABLE_PROVER=true # change from false to true
# A L2 account (with balance) private key which will send the TaikoL1.proveBlock transactions.
L2_PROVER_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000000 # your prover's private key
```

### Verify prover logs

Expand Down