2019-04-07 04:46:37 +00:00
|
|
|
# Constant Presets
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
## Format
|
|
|
|
|
|
|
|
Each preset is a key-value mapping.
|
|
|
|
|
|
|
|
**Key**: an `UPPER_SNAKE_CASE` (a.k.a. "macro case") formatted string, name of the constant.
|
2019-05-06 15:30:32 +00:00
|
|
|
|
|
|
|
**Value** can be either:
|
2019-04-07 04:46:37 +00:00
|
|
|
- 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.
|
|
|
|
|
2019-05-06 15:30:32 +00:00
|
|
|
See [`mainnet.yaml`](./mainnet.yaml) for a complete example.
|