-
Notifications
You must be signed in to change notification settings - Fork 291
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
Custom network configs break unless GOSSIP_MAX_SIZE and others are defined #7555
Comments
I think this got broken by trying to cope with some remote values missing from constants that moved... I'll work up a solution, the problem is specifically the ordering in remote config loader from #7510, it looks like we fixed it in the incorrect way... |
Actually, I may have slightly assessed this incorrectly... but I think the fix will be the same. Basically in consensus-specs, a bunch of 'constants' got moved to 'config'. There's a 'similar' problem with remote config where we now load some defaults in a bad order, but that's different to the root cause of this issue, which is just not having those moved values set in config thats loaded from a local resource. I think your initial assessment of it was correct in that its a flow on effect of the consensus-specs change, but this has also caused issues loading remote configs where 3375 hadn't been done on external BNs we're loading configuration from. |
One potential issue of note is the |
The constants that got moved have caused issues in remote config, and now in local config. This change defaults the values, which means if they're not supplied it'll silently succeed assuming the values from old constant values. I've reverted the initial remote config change, as it didn't really address the local loading issue mentioned in Consensys#7555, and it was potentially also applying in the incorrect order. `MIN_EPOCHS_FOR_BLOCK_REQUESTS` is different on mainnet and minimal, so that will be using the mainnet value by default. fixes Consensys#7555 Signed-off-by: Paul Harris <[email protected]>
My position on this is that it isn't a Teku issue, it is a spec issue.
Maybe the solution to this is to move this parameters on preset (but I don't have the reasoning why it was chosen to move them in config). Happy to continue the discussion on a spec issue! |
Following #7179 (spec change: ethereum/consensus-specs#3375) it is expected that networking config values are not inherited via the preset-base in the network config?
For example, when I use a custom network config, I am now required to define GOSSIP_MAX_SIZE despite
PRESET_BASE: 'minimal'
, see siladu/beku-timestamp@de1f285This also impacts web3signer due to the inherited dependency on the teku network config such that any custom networks in devnets or test infrastructure now requires the networking config.
The text was updated successfully, but these errors were encountered: