-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First draft of a topic on baking * Clarify * No need for a separate topic on running a node
- Loading branch information
1 parent
62288eb
commit 116f16e
Showing
3 changed files
with
44 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,46 @@ | ||
# Baking | ||
--- | ||
title: Baking | ||
authors: "Tim McMackin" | ||
last_update: | ||
date: 21 February 2024 | ||
--- | ||
|
||
- What is baking? | ||
- Why would I want to do it? | ||
- What's involved in baking | ||
Baking is the process of creating new blocks. | ||
Bakers are nodes that validate pending operations, package them into a block, sign the block, publish the new block to other nodes, and verify that the blocks that other nodes publish are valid. | ||
The protocol rewards bakers with tez for baking blocks and for attesting that other blocks are valid. | ||
|
||
Should this link to tezos.gitlab.io instead of being here? There are no topics on Baking there, but octez is how you bake. | ||
## The baking process | ||
|
||
We write an overview, based on what is on opentezos, to give a good understanding of what running nodes involve, without diving into details | ||
The baking process includes many steps that Tezos users and developers don't need to think about, but at a basic level, baking a block follows these steps: | ||
|
||
1. The protocol selects a list of bakers to create the blocks for a _cycle_, which is a certain number of blocks. | ||
1. It also selects a list of bakers to act as validators. | ||
These bakers are responsible for validating the blocks that other bakers create and publishing _attestations_ that the block is valid. | ||
1. The first baker on the list has a certain amount of time to create the next block. | ||
It packages pending operations into a block, signs it, and distributes it to the validators and other nodes. | ||
1. If the first baker doesn't publish a block in time, the next baker on the list has a certain amount of time to bake a block, and so on until a block is created. | ||
1. The validators verify the block and publish their attestations in future blocks. | ||
1. The next baker on the list creates the next block, and the cycle continues. | ||
|
||
## Becoming a baker | ||
|
||
To become a baker, you must create an account to act as a _delegate_, which is an account that is authorized to bake blocks and attest blocks that other accounts bake. | ||
Delegates temporarily stake tez as a security deposit to ensure that they are acting according to the rules of the protocol. | ||
This stake stays locked for a certain number of cycles before the delegate can begin baking. | ||
Similarly, when bakers stop baking, their stake is unlocked after a certain number of cycles. | ||
|
||
The delegate must stake at least least 6,000 tez, either from its own account or from tez that delegators delegate to it. | ||
The more tez a delegate has, both from its own account and from delegators, the more likely it is to be selected to bake a block and thus receive the rewards. | ||
|
||
Bakers must run at least one Tezos node and a baker daemon to go with it. | ||
These daemons must run at all times with a stable internet connection, because inactive bakers are automatically removed from the network. | ||
|
||
## Delegating to a baker | ||
|
||
If you don't have enough tez to become a baker or don't want to run a baking node, you can delegate tez to a baker, which makes you a _delegator_. | ||
The delegate doesn't have control over your tez and you can withdraw your tez at any time, but the tez that you delegate counts toward the amount of tez that the delegate has for baking purposes. | ||
Delegators receive a share of the delegate's rewards in proportion to the amount of tez that they delegate. | ||
|
||
## References | ||
|
||
For more information about baking, see [Node and Baking](https://opentezos.com/node-baking/baking/introduction/) on opentezos.com. |
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