-
Notifications
You must be signed in to change notification settings - Fork 920
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
Status code / slot reorganization #374
Merged
Merged
Commits on Dec 28, 2018
-
Status code / slot reorganization
* Added `activation_slot`, `exit_slot`, `penalized_slot`, `withdrawal_slot`, use these to determine if a validator is active * Universal min activation/exit delay of 256 slots * Min exit time of ~1 day, but penalization delays this to ~18 days * Penalty calculation period of `[time penalized - 18 days, time penalized + 18 days]`; made the total penalties array fixed size and wraparound to make calculation more fine-grained * Processes withdrawals in all epochs, not just dynasty-changing epochs * Change `get_shuffling` function to take slot as argument Not yet done: * Removed `shard_committees` from the state * Removed persistent committees from the state
Configuration menu - View commit details
-
Copy full SHA for d9e897b - Browse repository at this point
Copy the full SHA d9e897bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85d0010 - Browse repository at this point
Copy the full SHA 85d0010View commit details
Commits on Dec 29, 2018
-
Configuration menu - View commit details
-
Copy full SHA for bd5b32e - Browse repository at this point
Copy the full SHA bd5b32eView commit details -
Update specs/core/0_beacon-chain.md
Co-Authored-By: vbuterin <v@buterin.com>
Configuration menu - View commit details
-
Copy full SHA for 14f49aa - Browse repository at this point
Copy the full SHA 14f49aaView commit details
Commits on Dec 30, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 4a93374 - Browse repository at this point
Copy the full SHA 4a93374View commit details
Commits on Dec 31, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 0119701 - Browse repository at this point
Copy the full SHA 0119701View commit details -
Cleanups * (typo) Remove `get_new_validator_registry_delta_chain_tip` from table of contents * (typo) Update "Routines for updating validator status" in table of contents * Update `FAR_FUTURE_SLOT` from `2**63` to `2**64 - 1` * Put more constants in "Initial values", homogenise * Cleanup note formatting * Remove `ZERO_BALANCE_VALIDATOR_TTL` logic (to be possibly reintroduced in phase 2). * Cleanup `min_empty_validator_index` * Rename `deposit` to `amount` in `process_deposit` and `DepositData`. * (typo) Remove new line under `process_penalties_and_exits` * (typo) "Status codes" => "Status flags" in the table of contents * (typo) `(state.slot - EPOCH_LENGTH) % LATEST_RANDAO_MIXES_LENGTH` => Use `SEED_LOOKAHEAD` instead. * Put `state.validator_registry_latest_change_slot = state.slot` in `update_validator_registry`. * Use `GENESIS_SLOT` for `last_poc_change_slot=0` and `second_last_poc_change_slot=0`. Bugfixes * (typo) `validator_exit` => `exit.validator_index` * Separate initial deposits and initial activations to avoid double activations * Replace `proposer.status != EXITED_WITH_PENALTY` with `validator.penalized_slot > state.slot` in two different places. * Replace `status == EXITED_WITH_PENALTY` with `validator.penalized_slot <= state.slot` (and validator active) in two different places.
Configuration menu - View commit details
-
Copy full SHA for d36b403 - Browse repository at this point
Copy the full SHA d36b403View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd295eb - Browse repository at this point
Copy the full SHA fd295ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for fdb1b67 - Browse repository at this point
Copy the full SHA fdb1b67View commit details
Commits on Jan 2, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 2105614 - Browse repository at this point
Copy the full SHA 2105614View commit details -
Remove returned value for process_deposit
Also trim trailing whitespace
Configuration menu - View commit details
-
Copy full SHA for 696bf23 - Browse repository at this point
Copy the full SHA 696bf23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93b18d5 - Browse repository at this point
Copy the full SHA 93b18d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b614595 - Browse repository at this point
Copy the full SHA b614595View commit details
Commits on Jan 4, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 3f4be7a - Browse repository at this point
Copy the full SHA 3f4be7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a5b1f2c - Browse repository at this point
Copy the full SHA a5b1f2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c24f907 - Browse repository at this point
Copy the full SHA c24f907View commit details
Commits on Jan 5, 2019
-
Configuration menu - View commit details
-
Copy full SHA for fd2cc69 - Browse repository at this point
Copy the full SHA fd2cc69View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.