Skip to content

Commit

Permalink
Apply suggestions from Tim
Browse files Browse the repository at this point in the history
Co-authored-by: Tim McMackin <[email protected]>
  • Loading branch information
rafoo and timothymcmackin authored Jan 18, 2024
1 parent cc9a50e commit f554dd3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Step 1: get a Weeklynet-compatible Octez version
# Step 1: get a Weeklynet-compatible Octez version

The Weeklynet test network is restarted once every Wednesday at 0h UTC, and for most of its lifetime (from level 512) it runs a development version of the Tezos protocol, called Alpha, which is not part of any released version of Octez. For this reason, baking on Weeklynet requires to run Octez either with Docker using a specific Docker image, or by building it from source using a specific git commit.

To get this specific Docker image, or the hash of this specific commit, see https://teztnets.xyz/weeklynet-about. This page also contains the proper `octez-node config init` incantation to configure the Octez node with the current network parameters of Weeklynet, the URL of a public RPC endpoint, and a link to a faucet distributing free teznet tez.
To get this specific Docker image, or the hash of this specific commit, see https://teztnets.com/weeklynet-about. This page also contains the proper `octez-node config init` incantation to configure the Octez node with the current network parameters of Weeklynet, the URL of a public RPC endpoint, and a link to a faucet distributing free teznet tez.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Step 3: setting up a baker account on Weeklynet
# Step 3: setting up a baker account on Weeklynet

Our baker needs an implicit account consisting of a pair of keys and an address. The simplest to get them is to ask the Octez client to randomly generate them and associate them to the `my_baker` alias:
Our baker needs an implicit account consisting of a pair of keys and an address. The simplest way to get them is to ask the Octez client to randomly generate them and associate them to the `my_baker` alias:

```
octez-client gen keys my_baker
Expand All @@ -24,7 +24,7 @@ At this point, the balance of the `my_baker` account is still empty as can be se
octez-client --endpoint "$TEZTNETS_RPC_ENDPOINT" get balance for my_baker
```

In order to get some consensus and DAL rights, we need to put some tez on the account. Fortunately, getting free testnet tez is easy thanks to the testnet faucet. To use it, we need to enter the generated address in the Weeklynet faucet linked from https://teztnets.xyz/weeklynet-about. We need at least 6k tez for running a baker but the more tez we have the more rights we will get and the shorter we will have to wait to produce blocks and attestations; that being said, baking with too much stake would prevent us from leaving the network without disturbing or even halting it so to avoid breaking the network for all other testers let's not be too greedy. 50k tez should be enough to get enough rights to easily check if our baker behaves as expected while not much disturbing the network when our baker will stop operating.
In order to get some consensus and DAL rights, we need to put some tez on the account. Fortunately, getting free testnet tez is easy thanks to the testnet faucet. To use it, we need to enter the generated address in the Weeklynet faucet linked from https://teztnets.com/weeklynet-about. We need at least 6k tez for running a baker but the more tez we have the more rights we will get and the shorter we will have to wait to produce blocks and attestations; that being said, baking with too much stake would prevent us from leaving the network without disturbing or even halting it so to avoid breaking the network for all other testers let's not be too greedy. 50k tez should be enough to get enough rights to easily check if our baker behaves as expected while not much disturbing the network when our baker will stop operating.

Once the tez are obtained from the faucet, we can check with the same `get balance` command that they have been received:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Step 5: run an Octez baking deamon on Weeklynet
# Step 5: run an Octez baking deamon on Weeklynet

The baking daemon is launched almost as usual, the only difference is that we use the `--dal-node http://127.0.0.1` option to tell it to connect to the DAL node that we just launched in the previous step.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

## Step 4: run an Octez DAL node on Weeklynet
# Step 4: run an Octez DAL node on Weeklynet

```
octez-dal-node run &>> "$HOME/octez-dal-node.log"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Step 2: run an Octez node on Weeklynet
# Step 2: run an Octez node on Weeklynet

Once the Octez node has been configured to join Weeklynet, it's possible to launch it.

Expand Down

0 comments on commit f554dd3

Please sign in to comment.