File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
eth/beacon/state_machines Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 77SERENITY_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
Original file line number Diff line number Diff 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
235240def 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
245255def target_committee_size ():
246256 return SERENITY_CONFIG .TARGET_COMMITTEE_SIZE
You can’t perform that action at this time.
0 commit comments