-
-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: update configs to be able to support Deneb on all networks #6328
Conversation
PROPOSER_SCORE_BOOST: false, // Ignored as it's changing https://github.com/ethereum/consensus-specs/pull/2895 | ||
|
||
// Deposit contract | ||
DEPOSIT_CHAIN_ID: false, // Non-critical | ||
DEPOSIT_NETWORK_ID: false, // Non-critical | ||
DEPOSIT_CONTRACT_ADDRESS: true, | ||
|
||
// Networking | ||
MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@g11tech Based on my understanding of this value it is not critical to verify it here as it is only relevant for the beacon node and as part of networking can't result in a consensus failure.
Maybe you could confirm this, and should we add a comment here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it doesn't affect consensus, adding with false
is ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment in e94355b
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## unstable #6328 +/- ##
=============================================
- Coverage 76.60% 60.13% -16.47%
=============================================
Files 248 407 +159
Lines 25908 46451 +20543
Branches 1448 1534 +86
=============================================
+ Hits 19846 27935 +8089
- Misses 6032 18486 +12454
Partials 30 30 |
Performance Report✔️ no performance regression detected Full benchmark results
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo @g11tech 's approval / comment
🎉 This PR is included in v1.15.0 🎉 |
Motivation
Currently it is not possible to support Deneb on other networks like Gnosis as we define values that need to be part of configuration as constants and hence those can't be customized.
Description
MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS
from constants to config, this value is defined as part of configuration in the spec (specs/deneb/p2p-interface.md?plain=1#L66)Support all network configs
After reviewing the spec values I noticed we are still missing plenty of network values which should be part of the config (configs/mainnet.yaml#L113-L150). We either don't support them or those are defined as constants.
I looked into refactoring this to move all of the constants into config but not all parts of the code that use those values can get access to configs easily, for example values used in
rateLimitQuotas
lodestar/packages/beacon-node/src/network/reqresp/rateLimit.ts
Line 11 in 2db7120
While it should be possible to refactor the code to make this work, I think we should avoid large changes before the Deneb hard fork as current configuration is well tested already and there is no specific requirements to move those values from constants to config.
BREAKING CHANGE
Mainnet and minimal configs are now exported from
/configs
sub path instead of/presets
.The following change needs to be done if you are directly importing these from the
@lodestar/config
package