-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Electra spec config and builder (#8183)
* Electra spec config and builder There were fields missing for EIP-7251, and also some of the attestation fields. I added the entire diff from consensus-specs while I was going, it seemed easiest... Signed-off-by: Paul Harris <paul.harris@consensys.net>
- Loading branch information
Showing
9 changed files
with
369 additions
and
11 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
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
30 changes: 29 additions & 1 deletion
30
ethereum/spec/src/main/resources/tech/pegasys/teku/spec/config/presets/mainnet/electra.yaml
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,8 +1,36 @@ | ||
# Mainnet preset - Electra | ||
|
||
# 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 | ||
# --------------------------------------------------------------- | ||
PENDING_BALANCE_DEPOSITS_LIMIT: 134217728 | ||
PENDING_PARTIAL_WITHDRAWALS_LIMIT: 134217728 | ||
PENDING_CONSOLIDATIONS_LIMIT: 262144 | ||
|
||
# Reward and penalty quotients | ||
# --------------------------------------------------------------- | ||
MIN_SLASHING_PENALTY_QUOTIENT_ELECTRA: 4096 | ||
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 | ||
MAX_CONSOLIDATIONS: 1 | ||
|
||
# Execution | ||
# --------------------------------------------------------------- | ||
# 2**13 (= 8192) receipts | ||
MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD: 8192 | ||
# 2**4 (= 16) exits | ||
MAX_EXECUTION_LAYER_EXITS: 16 | ||
MAX_EXECUTION_LAYER_EXITS: 16 | ||
# 2**3 (= 8) partial withdrawals | ||
MAX_PARTIAL_WITHDRAWALS_PER_PAYLOAD: 8 |
Oops, something went wrong.