-
Notifications
You must be signed in to change notification settings - Fork 997
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 #1333 from ethereum/v08x
v0.8.2 release into master
- Loading branch information
Showing
86 changed files
with
1,735 additions
and
1,037 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Configs | ||
|
||
This directory contains a set of constants presets used for testing, testnets, and mainnet. | ||
|
||
A preset file contains all the constants known for its target. | ||
Later-fork constants can be ignored, e.g. ignore phase1 constants as a client that only supports phase 0 currently. | ||
|
||
|
||
## Forking | ||
|
||
Configs are not replaced, but extended with forks. This is to support syncing from one state to the other over a fork boundary, without hot-swapping a config. | ||
Instead, for forks that introduce changes in a constant, the constant name is prefixed with a short abbreviation of the fork. | ||
|
||
Over time, the need to sync an older state may be deprecated. | ||
In this case, the prefix on the new constant may be removed, and the old constant will keep a special name before completely being removed. | ||
|
||
A previous iteration of forking made use of "timelines", but this collides with the definitions used in the spec (constants for special forking slots etc.), | ||
and was not integrated sufficiently in any of the spec tools or implementations. | ||
Instead, the config essentially doubles as fork definition now, changing the value for e.g. `PHASE_1_GENESIS_SLOT` changes the fork. | ||
|
||
Another reason to prefer forking through constants is the ability to program a forking moment based on context, instead of being limited to a static slot number. | ||
|
||
|
||
## Format | ||
|
||
Each preset is a key-value mapping. | ||
|
||
**Key**: an `UPPER_SNAKE_CASE` (a.k.a. "macro case") formatted string, name of the constant. | ||
|
||
**Value** can be either: | ||
- an unsigned integer number, can be up to 64 bits (incl.) | ||
- a hexadecimal string, prefixed with `0x` | ||
|
||
Presets may contain comments to describe the values. | ||
|
||
See [`mainnet.yaml`](./mainnet.yaml) for a complete example. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.