Skip to content

Commit

Permalink
Update gnosis capella preset (#4302)
Browse files Browse the repository at this point in the history
## Issue Addressed

N/A

## Proposed Changes

Gnosis preset values have been updated from previous placeholder values. This changes are required for chiado since it inherits the preset from gnosis mainnet.

- preset values update PR ref: gnosischain/configs#11

## Additional Info

N/A
  • Loading branch information
dapplion committed May 19, 2023
1 parent 283c327 commit 981c72e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions consensus/types/presets/gnosis/capella.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ MAX_BLS_TO_EXECUTION_CHANGES: 16
# Execution
# ---------------------------------------------------------------
# 2**4 (= 16) withdrawals
MAX_WITHDRAWALS_PER_PAYLOAD: 16
MAX_WITHDRAWALS_PER_PAYLOAD: 8

# Withdrawals processing
# ---------------------------------------------------------------
# 2**14 (= 16384) validators
MAX_VALIDATORS_PER_WITHDRAWALS_SWEEP: 16384
MAX_VALIDATORS_PER_WITHDRAWALS_SWEEP: 8192
2 changes: 1 addition & 1 deletion consensus/types/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ impl ChainSpec {
*/
capella_fork_version: [0x03, 0x00, 0x00, 0x64],
capella_fork_epoch: None,
max_validators_per_withdrawals_sweep: 16384,
max_validators_per_withdrawals_sweep: 8192,

/*
* Network specific
Expand Down
2 changes: 1 addition & 1 deletion consensus/types/src/eth_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ impl EthSpec for GnosisEthSpec {
type MaxPendingAttestations = U2048; // 128 max attestations * 16 slots per epoch
type SlotsPerEth1VotingPeriod = U1024; // 64 epochs * 16 slots per epoch
type MaxBlsToExecutionChanges = U16;
type MaxWithdrawalsPerPayload = U16;
type MaxWithdrawalsPerPayload = U8;

fn default_spec() -> ChainSpec {
ChainSpec::gnosis()
Expand Down

0 comments on commit 981c72e

Please sign in to comment.