-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add electra presets to beacon API (#5630)
* add presets to API * add extra fields to config spec in beacon API * remove unused * add mainnet presets for gnosis and fix minimal preset default values
- Loading branch information
1 parent
dd340ee
commit 3203456
Showing
8 changed files
with
190 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,45 @@ | ||
# Gnosis preset - Electra | ||
# Mainnet preset - Electra | ||
|
||
ELECTRA_PLACEHOLDER: 0 | ||
# Gwei values | ||
# --------------------------------------------------------------- | ||
# 2**5 * 10**9 (= 32,000,000,000) Gwei | ||
MIN_ACTIVATION_BALANCE: 32000000000 | ||
# 2**11 * 10**9 (= 2,048,000,000,000) Gwei | ||
MAX_EFFECTIVE_BALANCE_ELECTRA: 2048000000000 | ||
|
||
# State list lengths | ||
# --------------------------------------------------------------- | ||
# `uint64(2**27)` (= 134,217,728) | ||
PENDING_BALANCE_DEPOSITS_LIMIT: 134217728 | ||
# `uint64(2**27)` (= 134,217,728) | ||
PENDING_PARTIAL_WITHDRAWALS_LIMIT: 134217728 | ||
# `uint64(2**18)` (= 262,144) | ||
PENDING_CONSOLIDATIONS_LIMIT: 262144 | ||
|
||
# Reward and penalty quotients | ||
# --------------------------------------------------------------- | ||
# `uint64(2**12)` (= 4,096) | ||
MIN_SLASHING_PENALTY_QUOTIENT_ELECTRA: 4096 | ||
# `uint64(2**12)` (= 4,096) | ||
WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA: 4096 | ||
|
||
# # Max operations per block | ||
# --------------------------------------------------------------- | ||
# `uint64(2**0)` (= 1) | ||
MAX_ATTESTER_SLASHINGS_ELECTRA: 1 | ||
# `uint64(2**3)` (= 8) | ||
MAX_ATTESTATIONS_ELECTRA: 8 | ||
# `uint64(2**0)` (= 1) | ||
MAX_CONSOLIDATIONS: 1 | ||
|
||
# Execution | ||
# --------------------------------------------------------------- | ||
# 2**13 (= 8192) receipts | ||
MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD: 8192 | ||
# 2**4 (= 16) withdrawal requests | ||
MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD: 16 | ||
|
||
# Withdrawals processing | ||
# --------------------------------------------------------------- | ||
# 2**3 ( = 8) pending withdrawals | ||
MAX_PENDING_PARTIALS_PER_WITHDRAWALS_SWEEP: 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,45 @@ | ||
# Mainnet preset - Electra | ||
|
||
ELECTRA_PLACEHOLDER: 0 | ||
# Gwei values | ||
# --------------------------------------------------------------- | ||
# 2**5 * 10**9 (= 32,000,000,000) Gwei | ||
MIN_ACTIVATION_BALANCE: 32000000000 | ||
# 2**11 * 10**9 (= 2,048,000,000,000) Gwei | ||
MAX_EFFECTIVE_BALANCE_ELECTRA: 2048000000000 | ||
|
||
# State list lengths | ||
# --------------------------------------------------------------- | ||
# `uint64(2**27)` (= 134,217,728) | ||
PENDING_BALANCE_DEPOSITS_LIMIT: 134217728 | ||
# `uint64(2**27)` (= 134,217,728) | ||
PENDING_PARTIAL_WITHDRAWALS_LIMIT: 134217728 | ||
# `uint64(2**18)` (= 262,144) | ||
PENDING_CONSOLIDATIONS_LIMIT: 262144 | ||
|
||
# Reward and penalty quotients | ||
# --------------------------------------------------------------- | ||
# `uint64(2**12)` (= 4,096) | ||
MIN_SLASHING_PENALTY_QUOTIENT_ELECTRA: 4096 | ||
# `uint64(2**12)` (= 4,096) | ||
WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA: 4096 | ||
|
||
# # Max operations per block | ||
# --------------------------------------------------------------- | ||
# `uint64(2**0)` (= 1) | ||
MAX_ATTESTER_SLASHINGS_ELECTRA: 1 | ||
# `uint64(2**3)` (= 8) | ||
MAX_ATTESTATIONS_ELECTRA: 8 | ||
# `uint64(2**0)` (= 1) | ||
MAX_CONSOLIDATIONS: 1 | ||
|
||
# Execution | ||
# --------------------------------------------------------------- | ||
# 2**13 (= 8192) receipts | ||
MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD: 8192 | ||
# 2**4 (= 16) withdrawal requests | ||
MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD: 16 | ||
|
||
# Withdrawals processing | ||
# --------------------------------------------------------------- | ||
# 2**3 ( = 8) pending withdrawals | ||
MAX_PENDING_PARTIALS_PER_WITHDRAWALS_SWEEP: 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,45 @@ | ||
# Minimal preset - Electra | ||
|
||
ELECTRA_PLACEHOLDER: 0 | ||
# Gwei values | ||
# --------------------------------------------------------------- | ||
# 2**5 * 10**9 (= 32,000,000,000) Gwei | ||
MIN_ACTIVATION_BALANCE: 32000000000 | ||
# 2**11 * 10**9 (= 2,048,000,000,000) Gwei | ||
MAX_EFFECTIVE_BALANCE_ELECTRA: 2048000000000 | ||
|
||
# State list lengths | ||
# --------------------------------------------------------------- | ||
# `uint64(2**27)` (= 134,217,728) | ||
PENDING_BALANCE_DEPOSITS_LIMIT: 134217728 | ||
# [customized] `uint64(2**6)` (= 64) | ||
PENDING_PARTIAL_WITHDRAWALS_LIMIT: 64 | ||
# [customized] `uint64(2**6)` (= 64) | ||
PENDING_CONSOLIDATIONS_LIMIT: 64 | ||
|
||
# Reward and penalty quotients | ||
# --------------------------------------------------------------- | ||
# `uint64(2**12)` (= 4,096) | ||
MIN_SLASHING_PENALTY_QUOTIENT_ELECTRA: 4096 | ||
# `uint64(2**12)` (= 4,096) | ||
WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA: 4096 | ||
|
||
# # Max operations per block | ||
# --------------------------------------------------------------- | ||
# `uint64(2**0)` (= 1) | ||
MAX_ATTESTER_SLASHINGS_ELECTRA: 1 | ||
# `uint64(2**3)` (= 8) | ||
MAX_ATTESTATIONS_ELECTRA: 8 | ||
# `uint64(2**0)` (= 1) | ||
MAX_CONSOLIDATIONS: 1 | ||
|
||
# Execution | ||
# --------------------------------------------------------------- | ||
# [customized] | ||
MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD: 4 | ||
# [customized] 2**1 (= 2) withdrawal requests | ||
MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD: 2 | ||
|
||
# Withdrawals processing | ||
# --------------------------------------------------------------- | ||
# 2**0 ( = 1) pending withdrawals | ||
MAX_PENDING_PARTIALS_PER_WITHDRAWALS_SWEEP: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters