Skip to content
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

fix up previous epoch logic around genesis #672

Merged
merged 3 commits into from
Feb 22, 2019
Merged

fix up previous epoch logic around genesis #672

merged 3 commits into from
Feb 22, 2019

Conversation

djrtwo
Copy link
Contributor

@djrtwo djrtwo commented Feb 21, 2019

#655 introduced a change in get_previous_epoch calculation that would have caused a number of separate exceptional case handling in epoch processing. This PR reverts this change and patches up a couple of other issues

@djrtwo djrtwo requested review from hwwhww and JustinDrake and removed request for hwwhww February 21, 2019 23:33
hwwhww added a commit to hwwhww/trinity that referenced this pull request Feb 22, 2019
hwwhww added a commit to hwwhww/trinity that referenced this pull request Feb 22, 2019
@djrtwo djrtwo requested a review from hwwhww February 22, 2019 15:35
@JustinDrake JustinDrake merged commit 060e3c3 into dev Feb 22, 2019
hwwhww added a commit to ethereum/trinity that referenced this pull request Feb 24, 2019
* Update privkeys fixtures, thanks to VB

* Address ethereum/consensus-specs#672: fix up previous epoch logic around genesis

* Address ethereum/consensus-specs#627: fix off by one attestaton issue

* Fix attester tools

1. Fix `create_mock_signed_attestation`: Address ethereum/consensus-specs#671
2. Fix `test_demo.py`
	1. Use queued `attestations_map: Dict[Slot, Sequence[Attestation]]` to keep the generated attestations, and include them when reache `MIN_ATTESTATION_INCLUSION_DELAY`.
	2. Add justification assertions

* PR feedback

* PR feedback
@djrtwo djrtwo deleted the genesis-checks branch February 26, 2019 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_crosslink_committees reads previous_seed during genesis_epoch
3 participants