-
Notifications
You must be signed in to change notification settings - Fork 24
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
Potential wrong data in safrol tests #29
Comments
If you are referring to Regarding your second point, I'll need to look into that. Is there a specific vector you'd like to highlight? |
The constant I opened PR davxy#4 for add it. |
Sure:
|
gamma_k are not the tickets, but the validator key set scheduled or the next session (this is the same type as base state lamba, kappa, iota). The attempt number is registered with the |
Yes, I meant But I found another problem: some output data, namely the error code, is implementation-dependent in the case where the input data contains more than exactly one invalid case. For example, currently
I could reorder the checks, but another test stats to fail - Hotfix for this cases is swap first and second element I suggest to change data as presenting exactly one invalid case or none. It makes test data implementation independent. |
You're right; I'll make that change. If you come across any other instances, please let me know. |
During implement tests, was figured out incorrect test data:
In some tests
state.gamma_k[].attempt
has incorrect values == 2 (by gray-paper it must be less then N=2, see 3rd paragraph of section 6.7. "The Extrinsic and Tickets").Because that more tests fail immediately with such error-code, although other results are expected.
In expected result state all newly added tickets
state.gamma_k[].attempt
have value == 0, but some original value frominput.extrinsics[].attempt
has not-zero value.The text was updated successfully, but these errors were encountered: