Skip to content

Commit e43209c

Browse files
committed
Fix test
1 parent 991804e commit e43209c

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

consensus/types/src/chain_spec.rs

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,18 @@ pub struct ChainSpec {
8787
*/
8888
pub genesis_delay: u64,
8989
pub seconds_per_slot: u64,
90+
pub slot_duration_ms: u64,
9091
pub min_attestation_inclusion_delay: u64,
9192
pub min_seed_lookahead: Epoch,
9293
pub max_seed_lookahead: Epoch,
9394
pub min_epochs_to_inactivity_penalty: u64,
9495
pub min_validator_withdrawability_delay: Epoch,
9596
pub shard_committee_period: u64,
97+
pub proposer_reorg_cutoff_bps: u64,
98+
pub attestation_due_bps: u64,
99+
pub aggregate_due_bps: u64,
100+
pub sync_message_due_bps: u64,
101+
pub contribution_due_bps: u64,
96102

97103
/*
98104
* Reward and penalty quotients
@@ -964,12 +970,18 @@ impl ChainSpec {
964970
*/
965971
genesis_delay: 604800, // 7 days
966972
seconds_per_slot: 12,
973+
slot_duration_ms: 12000,
967974
min_attestation_inclusion_delay: 1,
968975
min_seed_lookahead: Epoch::new(1),
969976
max_seed_lookahead: Epoch::new(4),
970977
min_epochs_to_inactivity_penalty: 4,
971978
min_validator_withdrawability_delay: Epoch::new(256),
972979
shard_committee_period: 256,
980+
proposer_reorg_cutoff_bps: 1667,
981+
attestation_due_bps: 3333,
982+
aggregate_due_bps: 6667,
983+
sync_message_due_bps: 3333,
984+
contribution_due_bps: 6667,
973985

974986
/*
975987
* Reward and penalty quotients
@@ -1098,14 +1110,14 @@ impl ChainSpec {
10981110
* Fulu hard fork params
10991111
*/
11001112
fulu_fork_version: [0x06, 0x00, 0x00, 0x00],
1101-
fulu_fork_epoch: None,
1113+
fulu_fork_epoch: Some(Epoch::new(411392)),
11021114
custody_requirement: 4,
11031115
number_of_custody_groups: 128,
11041116
data_column_sidecar_subnet_count: 128,
11051117
samples_per_slot: 8,
11061118
validator_custody_requirement: 8,
11071119
balance_per_additional_custody_group: 32000000000,
1108-
1120+
11091121
/*
11101122
* Gloas hard fork params
11111123
*/
@@ -1158,7 +1170,16 @@ impl ChainSpec {
11581170
/*
11591171
* Networking Fulu specific
11601172
*/
1161-
blob_schedule: BlobSchedule::default(),
1173+
blob_schedule: BlobSchedule::new(vec![
1174+
BlobParameters {
1175+
epoch: Epoch::new(412672),
1176+
max_blobs_per_block: 15,
1177+
},
1178+
BlobParameters {
1179+
epoch: Epoch::new(419072),
1180+
max_blobs_per_block: 21,
1181+
},
1182+
]),
11621183
min_epochs_for_data_column_sidecars_requests:
11631184
default_min_epochs_for_data_column_sidecars_requests(),
11641185
max_data_columns_by_root_request: default_data_columns_by_root_request(),
@@ -1310,12 +1331,18 @@ impl ChainSpec {
13101331
*/
13111332
genesis_delay: 6000, // 100 minutes
13121333
seconds_per_slot: 5,
1334+
slot_duration_ms: 5000,
13131335
min_attestation_inclusion_delay: 1,
13141336
min_seed_lookahead: Epoch::new(1),
13151337
max_seed_lookahead: Epoch::new(4),
13161338
min_epochs_to_inactivity_penalty: 4,
13171339
min_validator_withdrawability_delay: Epoch::new(256),
13181340
shard_committee_period: 256,
1341+
proposer_reorg_cutoff_bps: 1667,
1342+
attestation_due_bps: 3333,
1343+
aggregate_due_bps: 6667,
1344+
sync_message_due_bps: 3333,
1345+
contribution_due_bps: 6667,
13191346

13201347
/*
13211348
* Reward and penalty quotients

0 commit comments

Comments
 (0)