Skip to content

Commit

Permalink
fix(website): update run a prover docs (#13401)
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx authored Mar 22, 2023
1 parent 9d68016 commit 6f5bb9d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/website/pages/docs/guides/run-a-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,22 @@ Finally, set the following environment variables:
- L1_ENDPOINT_HTTP
- L1_ENDPOINT_WS

> **Note:** You can get a Sepolia L1 endpoint from a few places, [Alchemy](https://www.alchemy.com/) is one popular example.
<Callout>
You can get a Sepolia L1 endpoint from a few places, [Alchemy](https://www.alchemy.com/) is one popular example.
</Callout>

### Enable your node as a prover (optional)

> **NOTE:**: Only the first prover can get the reward, and others will be rejected by the protocol smart contract (with a custom error: L1_ID() or L1_ALREADY_PROVEN()). `💰 Your block proof was accepted` means you are the first prover and receive the reward. `✅ Valid block proven` means a proposed block was successfully proved on TaikoL1.
<Callout>
Only the first prover can get the reward, and others will be rejected by the protocol smart contract (with a custom error: L1_ID() or L1_ALREADY_PROVEN()). `💰 Your block proof was accepted` means you are the first prover and receive the reward. `✅ Valid block proven` means a proposed block was successfully proved on TaikoL1.
</Callout>
<Callout>
Keep in mind the additional prover requirements laid out in the prerequisites.
</Callout>

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` to that of your wallet's private key; it will need some balance 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)).
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` to that of your wallet's private key; it will need some balance 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)).

### Start a node

Expand Down

0 comments on commit 6f5bb9d

Please sign in to comment.