Skip to content

Commit c6ed7ea

Browse files
committed
1 parent e792570 commit c6ed7ea

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

eth/beacon/state_machines/configs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
(
1313
('SHARD_COUNT', int), # shards
1414
('DEPOSIT_SIZE', int), # ETH
15+
('MIN_TOPUP_SIZE', int), # ETH
1516
('MIN_ONLINE_DEPOSIT_SIZE', int), # ETH
1617
('DEPOSIT_CONTRACT_ADDRESS', Address),
18+
('DEPOSITS_FOR_CHAIN_START', int), # deposits
1719
('TARGET_COMMITTEE_SIZE', int), # validators
1820
('SLOT_DURATION', int), # seconds
1921
('CYCLE_LENGTH', int), # slots

eth/beacon/state_machines/forks/serenity/configs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
SERENITY_CONFIG = BeaconConfig(
88
SHARD_COUNT=2**10, # = 1,024 shards
99
DEPOSIT_SIZE=2**5, # = 32 ETH
10+
MIN_TOPUP_SIZE=1, # 1 ETH
1011
MIN_ONLINE_DEPOSIT_SIZE=2**4, # = 16 ETH
1112
DEPOSIT_CONTRACT_ADDRESS=ZERO_ADDRESS, # TODO: TBD
13+
DEPOSITS_FOR_CHAIN_START=2**14, # = 16,384 deposits
1214
TARGET_COMMITTEE_SIZE=2**8, # = 256 validators
1315
SLOT_DURATION=6, # seconds
1416
CYCLE_LENGTH=2**6, # = 64 slots

tests/beacon/conftest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,11 @@ def deposit_size():
231231
return SERENITY_CONFIG.DEPOSIT_SIZE
232232

233233

234+
@pytest.fixture
235+
def min_topup_size():
236+
return SERENITY_CONFIG.MIN_TOPUP_SIZE
237+
238+
234239
@pytest.fixture
235240
def min_online_deposit_size():
236241
return SERENITY_CONFIG.MIN_ONLINE_DEPOSIT_SIZE
@@ -241,6 +246,11 @@ def deposit_contract_address():
241246
return SERENITY_CONFIG.DEPOSIT_CONTRACT_ADDRESS
242247

243248

249+
@pytest.fixture
250+
def deposits_for_chain_start():
251+
return SERENITY_CONFIG.DEPOSITS_FOR_CHAIN_START
252+
253+
244254
@pytest.fixture
245255
def target_committee_size():
246256
return SERENITY_CONFIG.TARGET_COMMITTEE_SIZE

0 commit comments

Comments
 (0)