-
Notifications
You must be signed in to change notification settings - Fork 998
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 config validity conditions #407
Comments
Also, is that even technically a requirement? There's probably a pile of constants that need to be nonzero because we're dividing or moduloing by them; There's also a bunch of divisibility requirements (eg. A bunch of stuff that gets Merkle-tree'd must be a power of two. |
yes (edited)
You're right it is not technically a requirement, but might be a source of error for validators depending on implementation and/or the helpers provided in the spec. If |
Another approach could be to have "reduced constant sets" for testing, maybe just one to start with. That way all implementers can converge on the same constant set for testing. |
plus: |
Was chatting w/ @djrtwo and this one came up:
there is effectively a "dynamic constant" between the time of the the |
I'm working on this (finally) :) |
|
ran into this one while working on some tests...
credits to @protolambda for recognizing this one |
|
" |
|
I created a spreadsheet of phase 0 configuration: https://docs.google.com/spreadsheets/d/1xKwwjA3QO7k7VuqomsYc_uPeOSAV4VKRGo7m6Pb5TYA/edit?usp=sharing Comments here or on the spreadsheet are most welcome and appreciated! |
Issue
There are many conditions that are implicit for a configuration of constants to be valid.
To name a few:
MIN_ATTESTATION_INCLUSION_DELAY > 0
MAX_DEPOSIT >= MIN_DEPOSIT
ENTRY_EXIT_DELAY >= SEED_LOOKAHEAD
Proposed implementation
I propose we add an accompanying document on configuration to make these conditions explicit. This will aid in testing/testnets and will help if some party is looking to deploy a different instantiation of the protocol.
The text was updated successfully, but these errors were encountered: