Sync with beacon-chain spec
This commit is contained in:
parent
6502cc1149
commit
85ec791935
|
@ -1,45 +1,51 @@
|
||||||
# Mainnet preset - phase 1
|
# Mainnet preset - phase 1
|
||||||
|
|
||||||
|
|
||||||
# Phase 1: Upgrade from Phase 0
|
# # phase1-fork
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
PHASE_1_FORK_VERSION: 0x01000000
|
PHASE_1_FORK_VERSION: 0x01000000
|
||||||
# [STUB]
|
# [STUB]
|
||||||
PHASE_1_GENESIS_SLOT: 32
|
PHASE_1_GENESIS_SLOT: 32
|
||||||
INITIAL_ACTIVE_SHARDS: 64
|
INITIAL_ACTIVE_SHARDS: 64
|
||||||
|
|
||||||
# Phase 1: General
|
|
||||||
# ---------------------------------------------------------------
|
|
||||||
# Phase 1 domain
|
|
||||||
DOMAIN_SHARD_PROPOSAL: 0x80000000
|
|
||||||
DOMAIN_SHARD_COMMITTEE: 0x81000000
|
|
||||||
DOMAIN_LIGHT_CLIENT: 0x82000000
|
|
||||||
DOMAIN_CUSTODY_BIT_SLASHING: 0x83000000
|
|
||||||
|
|
||||||
# 2**10` (= 1024)
|
# beacon-chain
|
||||||
MAX_SHARDS: 1024
|
# ---------------------------------------------------------------
|
||||||
# 2**3 (= 8) | online epochs | ~51 min
|
# Misc
|
||||||
ONLINE_PERIOD: 8
|
# 2**10 (= 1,024)
|
||||||
|
MAX_SHARDS: 8
|
||||||
# 2**7 (= 128)
|
# 2**7 (= 128)
|
||||||
LIGHT_CLIENT_COMMITTEE_SIZE: 128
|
LIGHT_CLIENT_COMMITTEE_SIZE: 128
|
||||||
# 2**8 (= 256) | epochs | ~27 hours
|
# 2**3 (= 8)
|
||||||
LIGHT_CLIENT_COMMITTEE_PERIOD: 256
|
GASPRICE_ADJUSTMENT_COEFFICIENT: 8
|
||||||
# 2**18 (= 262,144)
|
|
||||||
SHARD_BLOCK_CHUNK_SIZE: 262144
|
# Shard block configs
|
||||||
# 2**2 (= 4)
|
# 2**20 (= 1048,576) bytes
|
||||||
MAX_SHARD_BLOCK_CHUNKS: 4
|
MAX_SHARD_BLOCK_SIZE: 1048576
|
||||||
# 3 * 2**16` (= 196,608)
|
# 2**18 (= 262,144) bytes
|
||||||
TARGET_SHARD_BLOCK_SIZE: 196608
|
TARGET_SHARD_BLOCK_SIZE: 262144
|
||||||
# Note: MAX_SHARD_BLOCKS_PER_ATTESTATION is derived from the list length.
|
# 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]
|
SHARD_BLOCK_OFFSETS: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233]
|
||||||
# len(SHARD_BLOCK_OFFSETS)
|
# len(SHARD_BLOCK_OFFSETS)
|
||||||
MAX_SHARD_BLOCKS_PER_ATTESTATION: 12
|
MAX_SHARD_BLOCKS_PER_ATTESTATION: 12
|
||||||
|
|
||||||
|
# Gwei values
|
||||||
# 2**14 (= 16,384) Gwei
|
# 2**14 (= 16,384) Gwei
|
||||||
MAX_GASPRICE: 16384
|
MAX_GASPRICE: 16384
|
||||||
# 2**3 (= 8) Gwei
|
# 2**3 (= 8) Gwei
|
||||||
MIN_GASPRICE: 8
|
MIN_GASPRICE: 8
|
||||||
# 2**3 (= 8)
|
|
||||||
GASPRICE_ADJUSTMENT_COEFFICIENT: 8
|
# 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
|
||||||
|
|
||||||
|
|
||||||
# Phase 1: Custody Game
|
# Phase 1: Custody Game
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Minimal preset - phase 1
|
# Minimal preset - phase 1
|
||||||
|
|
||||||
|
|
||||||
# Phase 1: Upgrade from Phase 0
|
# phase1-fork
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# [customized] for testnet distinction
|
# [customized] for testnet distinction
|
||||||
PHASE_1_FORK_VERSION: 0x01000001
|
PHASE_1_FORK_VERSION: 0x01000001
|
||||||
|
@ -10,43 +10,48 @@ PHASE_1_GENESIS_SLOT: 8
|
||||||
# [customized] reduced for testing
|
# [customized] reduced for testing
|
||||||
INITIAL_ACTIVE_SHARDS: 2
|
INITIAL_ACTIVE_SHARDS: 2
|
||||||
|
|
||||||
# Phase 1: General
|
|
||||||
|
# beacon-chain
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# Phase 1 domain
|
# Misc
|
||||||
|
# [customized] reduced for testing
|
||||||
|
MAX_SHARDS: 8
|
||||||
|
# 2**7 (= 128)
|
||||||
|
LIGHT_CLIENT_COMMITTEE_SIZE: 128
|
||||||
|
# 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
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Gwei values
|
||||||
|
# 2**14 (= 16,384) Gwei
|
||||||
|
MAX_GASPRICE: 16384
|
||||||
|
# 2**3 (= 8) Gwei
|
||||||
|
MIN_GASPRICE: 8
|
||||||
|
|
||||||
|
# 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_PROPOSAL: 0x80000000
|
||||||
DOMAIN_SHARD_COMMITTEE: 0x81000000
|
DOMAIN_SHARD_COMMITTEE: 0x81000000
|
||||||
DOMAIN_LIGHT_CLIENT: 0x82000000
|
DOMAIN_LIGHT_CLIENT: 0x82000000
|
||||||
DOMAIN_CUSTODY_BIT_SLASHING: 0x83000000
|
DOMAIN_CUSTODY_BIT_SLASHING: 0x83000000
|
||||||
|
|
||||||
# [customized] reduced for testing
|
|
||||||
MAX_SHARDS: 8
|
|
||||||
# 2**3 (= 8) | online epochs
|
|
||||||
ONLINE_PERIOD: 8
|
|
||||||
# 2**7 (= 128)
|
|
||||||
LIGHT_CLIENT_COMMITTEE_SIZE: 128
|
|
||||||
# 2**8 (= 256) | epochs
|
|
||||||
LIGHT_CLIENT_COMMITTEE_PERIOD: 256
|
|
||||||
# 2**18 (= 262,144)
|
|
||||||
SHARD_BLOCK_CHUNK_SIZE: 262144
|
|
||||||
# 2**2 (= 4)
|
|
||||||
MAX_SHARD_BLOCK_CHUNKS: 4
|
|
||||||
# 3 * 2**16` (= 196,608)
|
|
||||||
TARGET_SHARD_BLOCK_SIZE: 196608
|
|
||||||
# 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
|
|
||||||
# 2**14 (= 16,384) Gwei
|
|
||||||
MAX_GASPRICE: 16384
|
|
||||||
# 2**3 (= 8) Gwei
|
|
||||||
MIN_GASPRICE: 8
|
|
||||||
# 2**3 (= 8)
|
|
||||||
GASPRICE_ADJUSTMENT_COEFFICIENT: 8
|
|
||||||
|
|
||||||
|
# custody-game
|
||||||
# Phase 1: Custody Game
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
# Time parameters
|
# Time parameters
|
||||||
# 2**1 (= 2) epochs
|
# 2**1 (= 2) epochs
|
||||||
RANDAO_PENALTY_EPOCHS: 2
|
RANDAO_PENALTY_EPOCHS: 2
|
||||||
|
|
Loading…
Reference in New Issue