2020-06-10 16:40:09 +00:00
|
|
|
# Mainnet preset - phase 1
|
|
|
|
|
|
|
|
|
2020-06-11 16:47:26 +00:00
|
|
|
# phase1-fork
|
2020-06-10 16:40:09 +00:00
|
|
|
# ---------------------------------------------------------------
|
|
|
|
PHASE_1_FORK_VERSION: 0x01000000
|
|
|
|
# [STUB]
|
|
|
|
PHASE_1_GENESIS_SLOT: 32
|
|
|
|
INITIAL_ACTIVE_SHARDS: 64
|
|
|
|
|
|
|
|
|
2020-06-10 16:58:40 +00:00
|
|
|
# beacon-chain
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# Misc
|
|
|
|
# 2**10 (= 1,024)
|
2020-06-11 16:47:26 +00:00
|
|
|
MAX_SHARDS: 1024
|
2020-06-10 16:40:09 +00:00
|
|
|
# 2**7 (= 128)
|
|
|
|
LIGHT_CLIENT_COMMITTEE_SIZE: 128
|
2020-06-10 16:58:40 +00:00
|
|
|
# 2**3 (= 8)
|
|
|
|
GASPRICE_ADJUSTMENT_COEFFICIENT: 8
|
|
|
|
|
|
|
|
# Shard block configs
|
|
|
|
# 2**20 (= 1048,576) bytes
|
|
|
|
MAX_SHARD_BLOCK_SIZE: 1048576
|
|
|
|
# 2**18 (= 262,144) bytes
|
|
|
|
TARGET_SHARD_BLOCK_SIZE: 262144
|
2020-06-10 16:40:09 +00:00
|
|
|
# Note: MAX_SHARD_BLOCKS_PER_ATTESTATION is derived from the list length.
|
|
|
|
SHARD_BLOCK_OFFSETS: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233]
|
|
|
|
# len(SHARD_BLOCK_OFFSETS)
|
|
|
|
MAX_SHARD_BLOCKS_PER_ATTESTATION: 12
|
2020-06-10 16:58:40 +00:00
|
|
|
|
|
|
|
# Gwei values
|
2020-06-10 16:40:09 +00:00
|
|
|
# 2**14 (= 16,384) Gwei
|
|
|
|
MAX_GASPRICE: 16384
|
|
|
|
# 2**3 (= 8) Gwei
|
|
|
|
MIN_GASPRICE: 8
|
2020-06-10 16:58:40 +00:00
|
|
|
|
|
|
|
# Time parameters
|
|
|
|
# 2**3 (= 8) | online epochs
|
|
|
|
ONLINE_PERIOD: 8
|
|
|
|
# 2**8 (= 256) | epochs
|
|
|
|
LIGHT_CLIENT_COMMITTEE_PERIOD: 256
|
|
|
|
|
|
|
|
# Domain types
|
|
|
|
DOMAIN_SHARD_PROPOSAL: 0x80000000
|
|
|
|
DOMAIN_SHARD_COMMITTEE: 0x81000000
|
|
|
|
DOMAIN_LIGHT_CLIENT: 0x82000000
|
|
|
|
DOMAIN_CUSTODY_BIT_SLASHING: 0x83000000
|
2020-06-10 16:40:09 +00:00
|
|
|
|
|
|
|
|
2020-06-11 16:47:26 +00:00
|
|
|
# custody-game
|
2020-06-10 16:40:09 +00:00
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# Time parameters
|
|
|
|
# 2**1 (= 2) epochs, 12.8 minutes
|
|
|
|
RANDAO_PENALTY_EPOCHS: 2
|
|
|
|
# 2**14 (= 16,384) epochs ~73 days
|
|
|
|
EARLY_DERIVED_SECRET_PENALTY_MAX_FUTURE_EPOCHS: 16384
|
|
|
|
# 2**11 (= 2,048) epochs, ~9 days
|
|
|
|
EPOCHS_PER_CUSTODY_PERIOD: 2048
|
|
|
|
# 2**11 (= 2,048) epochs, ~9 days
|
|
|
|
CUSTODY_PERIOD_TO_RANDAO_PADDING: 2048
|
|
|
|
# 2**7 (= 128) epochs, ~14 hours
|
|
|
|
MAX_REVEAL_LATENESS_DECREMENT: 128
|
|
|
|
|
|
|
|
# Max operations
|
|
|
|
# 2**8 (= 256)
|
|
|
|
MAX_CUSTODY_KEY_REVEALS: 256
|
|
|
|
MAX_EARLY_DERIVED_SECRET_REVEALS: 1
|
|
|
|
MAX_CUSTODY_SLASHINGS: 1
|
|
|
|
|
|
|
|
# Reward and penalty quotients
|
|
|
|
EARLY_DERIVED_SECRET_REVEAL_SLOT_REWARD_MULTIPLE: 2
|
|
|
|
# 2**8 (= 256)
|
|
|
|
MINOR_REWARD_QUOTIENT: 256
|