Skip to content

Commit

Permalink
Update config values
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jan 24, 2025
1 parent 1331488 commit 93e73c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/config/src/chainConfig/configs/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const chainConfig: ChainConfig = {
ETH1_FOLLOW_DISTANCE: 2048,
ATTESTATION_DEADLINE: 4,
PROPOSER_INCLUSION_LIST_CUT_OFF: 11,
VIEW_FREEZE_DEADLINE: 9,

// Validator cycle
// ---------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/config/src/chainConfig/configs/minimal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export const chainConfig: ChainConfig = {
SHARD_COMMITTEE_PERIOD: 64,
// [customized] process deposits more quickly, but insecure
ETH1_FOLLOW_DISTANCE: 16,
// TODO FOCIL: these values don't make sense, we only have 6 seconds per slot
ATTESTATION_DEADLINE: 4,
PROPOSER_INCLUSION_LIST_CUT_OFF: 11,
ATTESTATION_DEADLINE: 2,
PROPOSER_INCLUSION_LIST_CUT_OFF: 5,
VIEW_FREEZE_DEADLINE: 3,

// Validator cycle
// ---------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions packages/config/src/chainConfig/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export type ChainConfig = {
ETH1_FOLLOW_DISTANCE: number;
ATTESTATION_DEADLINE: number;
PROPOSER_INCLUSION_LIST_CUT_OFF: number;
VIEW_FREEZE_DEADLINE: number;

// Validator cycle
INACTIVITY_SCORE_BIAS: number;
Expand Down Expand Up @@ -132,6 +133,7 @@ export const chainConfigTypes: SpecTypes<ChainConfig> = {
ETH1_FOLLOW_DISTANCE: "number",
ATTESTATION_DEADLINE: "number",
PROPOSER_INCLUSION_LIST_CUT_OFF: "number",
VIEW_FREEZE_DEADLINE: "number",

// Validator cycle
INACTIVITY_SCORE_BIAS: "number",
Expand Down
1 change: 1 addition & 0 deletions packages/validator/src/util/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ function getSpecCriticalParams(localConfig: ChainConfig): Record<keyof ConfigWit
// FOCIL
ATTESTATION_DEADLINE: focilForkRelevant,
PROPOSER_INCLUSION_LIST_CUT_OFF: focilForkRelevant,
VIEW_FREEZE_DEADLINE: focilForkRelevant,
MAX_REQUEST_INCLUSION_LIST: focilForkRelevant,
MAX_BYTES_PER_INCLUSION_LIST: focilForkRelevant,
};
Expand Down

0 comments on commit 93e73c2

Please sign in to comment.