-
Notifications
You must be signed in to change notification settings - Fork 217
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
[Interop] get_compact_committees_root / get_crosslink_committee issue #378
Comments
Diving deeper into get_crosslink_committee / get_compute_committee it seems like we have a Python
Nim
|
This is tied into remaining |
mratsim
added a commit
that referenced
this issue
Sep 4, 2019
…k_committee, get_compact_committee_root
tersec
pushed a commit
that referenced
this issue
Sep 4, 2019
…k_committee, get_compact_committee_root (#380)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While investing active_index_root and compact_committee_root SSZ issue (#373 (comment)), I found an issue beyond SSZ serialization on get_compat_committees_root or get_crosslink_committees.
Reproduction
Setup
Python
Instruction at https://github.com/ethereum/eth2.0-specs/tree/db34ee17b63d2856f15f9182a803eeca5495c9f1/test_libs/pyspec
I suggest the venv.
Assuming you are at the root of eth2.0-specs directory
Once in the env, edit
./test_libs/pyspec/eth2spec/spec.py
witht he desired debug informationComment out all irrelevant tests in
./test_libs/test/phase_0/epoch_processing/test_process_final_updates.py
. Only keep the last oneRun
Nim
In
./tests/official
create a filemyfile.nim
with an accompanyingmyfile.nim.cfg
, the cfg contains-d:ssz_testing
which is necessary as the EF provided signatures are not on the BLS curveThe Nim file is a simple modification of
test_fixture_state_transition_epoch.nim
to focus onSszTestsDir/const_preset/"phase0"/"epoch_processing"/"final_updates"/"pyspec_tests"/"compact_committees_root"
unittest.Run
Debug code
I've added the following code to get_compact_committees_root() for debugging
Python
./test_libs/pyspec/eth2spec/spec.py line 619
Nim
./beacon_chain/spec/beaconstate line 179
Traces
Python
Note that there are 2 invocations in python, one is because it's saving the expected result of
get_compact_committees_root
before the full epoch transition, only look at the second.Nim
The text was updated successfully, but these errors were encountered: