-
Notifications
You must be signed in to change notification settings - Fork 972
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 tests of processing objects of N-2
fork version
#2976
Conversation
9acfa23
to
b3ef9b2
Compare
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.
great!
) | ||
|
||
|
||
def _run_voluntary_exit_processing_with_specific_fork_version( |
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.
The name seems slightly off given that this is specifically for an epoch in the previous signature domain (epoch 0, and a fork at epoch 1). that said, it doesn' matter too too much.
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.
to make the name more apt and add a couple of tests -- maybe a bool here -- is_before_fork_epoch
-- that says if you utilize a voluntary exit with an epoch pre or post the most recent state.fork.epoch
. Then we could write a test that has Altair fork_Version but for after fork.epoch
which should fail (and a bellatrix fork_version for before the bellatrix fork)
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.
good suggestion 👍 added the new bool flag in 6c00b48
tests/core/pyspec/eth2spec/test/bellatrix/block_processing/test_process_deposit.py
Outdated
Show resolved
Hide resolved
tests/core/pyspec/eth2spec/test/bellatrix/block_processing/test_process_deposit.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
…t_process_deposit.py Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
test_process_voluntary_exit.py
test_voluntary_exit_with_previous_fork_version__valid
:ALTAIR_FORK_VERSION
test_voluntary_exit_with_genesis_fork_version__invalid
:GENESIS_FORK_VERSION
test_process_deposit.py
GENESIS_FORK_VERSION
can add new entryrun_voluntary_exit_processing
andrun_deposit_processing
function to the shared helper files.