-
Notifications
You must be signed in to change notification settings - Fork 146
Update previous epoch calculation #469
Update previous epoch calculation #469
Conversation
7b2f19b
to
09d0665
Compare
@ChihChengLiang @hwwhww @NIC619 given that you reviewed the other PR, i'll tag you here. like stated above, i started rebasing and realized we want to handle some of the testing in a better way. the one thing i could call special attention to is thanks! |
@ralexstokes Feel free to fix them, those functions are implemented before v0.2.0. Prior to this PR, previous epoch and current epoch is 0 on the genesis, that's the very reason why
|
09d0665
to
9439f3c
Compare
@ChihChengLiang great -- went ahead and did that! just to confirm, we do want this w/ the latest implementation correct? https://github.com/ethereum/trinity/pull/469/files#diff-9ffda674671b43bc2ac2193ad772c6a5R319 this is my understanding but we want to be extra careful about justifying the correct stuff :) |
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.
Probably also need @ChihChengLiang 's review on this but the refactoring makes a lot of sense! 👍
tests/eth2/beacon/state_machines/forks/test_serenity_epoch_processing.py
Show resolved
Hide resolved
Great work! Only leave some nitpick here. Justification and finalization look good to me, their core logic did not change much in the spec and the test cases are still valid. |
Primarily to avoid blowing up when accessing an epoch prior to genesis
Rather than testing multiple redundantly
87820e5
to
23be397
Compare
What was wrong?
Fixes #382.
Replaces #398.
How was it fixed?
Started rebasing #398 and realized we want to handle some of the tests differently.
This has the same content but keeps some of the tests... after further inspection I think what I had in #398 was actually weakening the test coverage.
Cute Animal Picture