-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #438 from trilitech/staging
Publish updated DAL baker tutorial to main
- Loading branch information
Showing
14 changed files
with
391 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,55 @@ | ||
--- | ||
title: Join the DAL as a baker, in 5 steps | ||
authors: Tezos core developers | ||
title: Join the DAL as a baker in 5 steps | ||
authors: Tezos core developers, Tim McMackin | ||
last_update: | ||
date: 10 June 2024 | ||
date: 19 August 2024 | ||
--- | ||
|
||
The Tezos data availability layer (DAL) is a key component for the scalability of Tezos. | ||
In a nutshell, the DAL increases the data bandwidth available for Tezos Smart Rollups by providing a peer-to-peer network that they can use to fetch data without compromising security. | ||
|
||
When users and dApps submit data to the DAL, layer 1 nodes attest that it is available and DAL nodes distribute it to Smart Rollup nodes, which can store the data and use it. | ||
|
||
Just like layer 1, Tezos bakers ensure the security of the DAL. | ||
Bakers not only produce blocks but also attest that other bakers' blocks are valid and properly published on layer 1. | ||
In the same way, bakers attest that data published to the DAL is available. | ||
In the current implementation of the DAL, bakers do not receive extra incentives for attesting DAL data, but they might in the future. | ||
For now, bakers can join the DAL without risking any reward loss, ensuring a smooth transition. | ||
|
||
This incentive-free version of the DAL is currently available on the Weeklynet test network. | ||
In this tutorial you learn how to join Weeklynet as a baker and attest the publication of data on the DAL network. | ||
In this tutorial, you learn how to join Ghostnet as a baker and attest the publication of data on the DAL network on Ghostnet. | ||
The steps for participating on any other network, including Tezos Mainnet, are similar. | ||
|
||
:::note Attestation rights delay | ||
|
||
This tutorial includes setting up a baker to attest that data is available on the DAL. | ||
Depending on the network, it takes time for bakers to get attestation rights. | ||
The delay on Ghostnet is about 3.5 days, so in this tutorial you do setup work, wait 3.5 days for attestation rights, and verify that your DAL node and baker are working properly. | ||
|
||
If you don't want to wait that long, you can use Weeklynet, where the delay is about an hour. | ||
However, to use Weeklynet, you must use a specific version of the Octez suite. | ||
You must also be aware that the network completely resets and moves to a new version of the Octez suite every Wednesday. | ||
For information about using Weeklynet, see [Testing on sandboxes and testnets](../developing/testnets). | ||
|
||
::: | ||
|
||
## Tutorial diagram | ||
|
||
In this tutorial, you set up the Octez client and several Octez daemons, including a layer 1 node, a baker, and a DAL baking node. | ||
In this tutorial, you set up the Octez client and several Octez daemons, including a layer 1 node, a baker, and a DAL node. | ||
The following diagram shows these daemons with a blue background: | ||
|
||
![A diagram of the DAL architecture, with the daemons that you create in this tutorial highlighted](/img/tutorials/join-dal-baker-overview.png) | ||
<!-- https://lucid.app/lucidchart/b6b076ec-194c-4011-8e20-fa348bb983f3/edit?page=0_0# --> | ||
|
||
## Prerequisites | ||
|
||
This tutorial requires a cloud-based computer or a computer that stays running constantly. | ||
|
||
## References | ||
|
||
- For an overview of the DAL, see [Data Availability Layer](../architecture/data-availability-layer). | ||
- For an introduction to how the DAL works, see the tutorial [Implement a file archive with the DAL and a Smart Rollup](./build-files-archive-with-dal). | ||
- For technical information about the DAL, see [Data-Availability Layer](https://tezos.gitlab.io/shell/dal.html) in the Octez documentation. | ||
|
||
:::warning | ||
This tutorial uses a very simple setup running all required daemons on the same machine. In a production environment, we advise against running a DAL attester node under the same IP address than a baker's node because the DAL node may leak the IP address and ease DOS attacks on the baker. See also [the DAL documentation page on baking](https://tezos.gitlab.io/shell/dal_bakers.html). | ||
::: | ||
|
||
:::warning | ||
The UX of the DAL components will be subject to changes with the feedback from the testers following this tutorial, so this tutorial will be updated accordingly. Feel free to file issues if it's not up-to-date. | ||
::: | ||
## Getting started | ||
|
||
- [Step 1: Get a Weeklynet-compatible Octez version](./join-dal-baker/get-octez) | ||
- [Step 2: Run an Octez node on Weeklynet](./join-dal-baker/run-node) | ||
- [Step 3: Set up a baker account on Weeklynet](./join-dal-baker/prepare-account) | ||
- [Step 4: Run an Octez DAL node on Weeklynet](./join-dal-baker/run-dal-node) | ||
- [Step 5: Run an Octez baking daemon on Weeklynet](./join-dal-baker/run-baker) | ||
- [Conclusion](./join-dal-baker/conclusion) | ||
To get started, go to [Step 1: Run an Octez node](./join-dal-baker/run-node). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.