-
Notifications
You must be signed in to change notification settings - Fork 989
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
Add networking configs to config files #3375
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,3 +86,8 @@ MAX_ATTESTATIONS: 128 | |
MAX_DEPOSITS: 16 | ||
# 2**4 (= 16) | ||
MAX_VOLUNTARY_EXITS: 16 | ||
|
||
# Networking | ||
# --------------------------------------------------------------- | ||
# 2**8 (= 256) | ||
EPOCHS_PER_SUBNET_SUBSCRIPTION: 256 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this one a preset? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess that if this one is too low, the churn rate will be too high. So, no network probably wants this number to be too low. That is, around 1/EPOCHS_PER_SUBNET_SUBSCRIPTION of the nodes will change the subnets in each epoch. However, I just guess. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because our previous I can move it to configs if you prefer. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah but the other This seems a bit more like something you could mess with on a network/testnet without affecting compile time build in a negative way |
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.
As you've commented, this is fixed by the other two parameters. We could probably leave this one out, but if it's here for consistency, fine by me :)
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.
Yeah, I tried to replace it with a
compute_attestation_prefix_bits()
helper. However, it seemed a bit unusual to me, so I changed it to determineATTESTATION_SUBNET_PREFIX_BITS
here and verify the correctness intest_config_invariants.py
. 😅