-
Notifications
You must be signed in to change notification settings - Fork 244
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
Slashing protection v2 would fail interchange tests under Nim 1.2.10 #2393
Comments
It seems like the failure happens here on line 995 nimbus-eth2/beacon_chain/validators/slashing_protection_v2.nim Lines 984 to 1005 in c0d8ecd
For example for the input {
"name": "single_validator_slashable_blocks_no_root",
"genesis_validators_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"steps": [
{
"should_succeed": true,
"allow_partial_import": true,
"interchange": {
"metadata": {
"interchange_format_version": "5",
"genesis_validators_root": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
"data": [
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"signed_blocks": [
{
"slot": "10"
},
{
"slot": "10"
}
],
"signed_attestations": []
}
]
},
"blocks": [],
"attestations": []
}
]
} This is called here when deserializing the interchange format nimbus-eth2/beacon_chain/validators/slashing_protection_common.nim Lines 399 to 445 in c0d8ecd
but signed_attestation is empty so it shouldn't have been called at all |
Ah it seems like the line 995 in the attachment throw me off. So the reason why there is a failure is because I use -1 as a special value here
And if there is no attestation, this special value ends up here nimbus-eth2/beacon_chain/validators/slashing_protection_common.nim Lines 447 to 449 in c0d8ecd
|
Closed in #2395 |
interchange_test_failures.txt
This came out of #2392.
It's part of #2366 and blocks updating to Nim 1.2.10 because nim-lang/Nim#15210.
The text was updated successfully, but these errors were encountered: