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 12
12
(
13
13
('SHARD_COUNT' , int ), # shards
14
14
('DEPOSIT_SIZE' , int ), # ETH
15
+ ('MIN_TOPUP_SIZE' , int ), # ETH
15
16
('MIN_ONLINE_DEPOSIT_SIZE' , int ), # ETH
16
17
('DEPOSIT_CONTRACT_ADDRESS' , Address ),
18
+ ('DEPOSITS_FOR_CHAIN_START' , int ), # deposits
17
19
('TARGET_COMMITTEE_SIZE' , int ), # validators
18
20
('SLOT_DURATION' , int ), # seconds
19
21
('CYCLE_LENGTH' , int ), # slots
Original file line number Diff line number Diff line change 7
7
SERENITY_CONFIG = BeaconConfig (
8
8
SHARD_COUNT = 2 ** 10 , # = 1,024 shards
9
9
DEPOSIT_SIZE = 2 ** 5 , # = 32 ETH
10
+ MIN_TOPUP_SIZE = 1 , # 1 ETH
10
11
MIN_ONLINE_DEPOSIT_SIZE = 2 ** 4 , # = 16 ETH
11
12
DEPOSIT_CONTRACT_ADDRESS = ZERO_ADDRESS , # TODO: TBD
13
+ DEPOSITS_FOR_CHAIN_START = 2 ** 14 , # = 16,384 deposits
12
14
TARGET_COMMITTEE_SIZE = 2 ** 8 , # = 256 validators
13
15
SLOT_DURATION = 6 , # seconds
14
16
CYCLE_LENGTH = 2 ** 6 , # = 64 slots
Original file line number Diff line number Diff line change @@ -231,6 +231,11 @@ def deposit_size():
231
231
return SERENITY_CONFIG .DEPOSIT_SIZE
232
232
233
233
234
+ @pytest .fixture
235
+ def min_topup_size ():
236
+ return SERENITY_CONFIG .MIN_TOPUP_SIZE
237
+
238
+
234
239
@pytest .fixture
235
240
def min_online_deposit_size ():
236
241
return SERENITY_CONFIG .MIN_ONLINE_DEPOSIT_SIZE
@@ -241,6 +246,11 @@ def deposit_contract_address():
241
246
return SERENITY_CONFIG .DEPOSIT_CONTRACT_ADDRESS
242
247
243
248
249
+ @pytest .fixture
250
+ def deposits_for_chain_start ():
251
+ return SERENITY_CONFIG .DEPOSITS_FOR_CHAIN_START
252
+
253
+
244
254
@pytest .fixture
245
255
def target_committee_size ():
246
256
return SERENITY_CONFIG .TARGET_COMMITTEE_SIZE
You can’t perform that action at this time.
0 commit comments