Skip to content

Commit

Permalink
feat(website): update node running guides (#14400)
Browse files Browse the repository at this point in the history
Co-authored-by: d1onys1us <13951458+d1onys1us@users.noreply.github.com>
  • Loading branch information
2manslkh and dionysuzx authored Aug 8, 2023
1 parent edd8af2 commit 445b826
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 7 deletions.
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:

```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:

```sh
nano .env
```

For Eldfell L3:

```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

0 comments on commit 445b826

Please sign in to comment.