Skip to content

Commit

Permalink
Update tests with should_succeed_complete
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Nov 29, 2023
1 parent 658f719 commit a218a99
Show file tree
Hide file tree
Showing 28 changed files with 300 additions and 150 deletions.
15 changes: 10 additions & 5 deletions tests/generated/duplicate_pubkey_not_slashable.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,22 @@
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "10",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "13",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "14",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
}
],
"attestations": [
Expand All @@ -73,14 +76,16 @@
"source_epoch": "0",
"target_epoch": "2",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"source_epoch": "1",
"target_epoch": "3",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
}
]
}
Expand Down
12 changes: 8 additions & 4 deletions tests/generated/duplicate_pubkey_slashable_attestation.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,32 @@
"source_epoch": "0",
"target_epoch": "1",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"source_epoch": "0",
"target_epoch": "2",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"source_epoch": "0",
"target_epoch": "4",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"source_epoch": "1",
"target_epoch": "4",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions tests/generated/duplicate_pubkey_slashable_block.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "10",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "11",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
}
],
"attestations": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,31 +128,36 @@
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "0",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "3",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": false,
"should_succeed_complete": true
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "7",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "3",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": false,
"should_succeed_complete": true
},
{
"pubkey": "0xb89bebc699769726a318c8e9971bd3171297c61aea4a6578a7a4f94b547dcba5bac16a89108b6b6a1fe3695d1a874a0b",
"slot": "0",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
}
],
"attestations": [
Expand All @@ -161,14 +166,16 @@
"source_epoch": "0",
"target_epoch": "4",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xb89bebc699769726a318c8e9971bd3171297c61aea4a6578a7a4f94b547dcba5bac16a89108b6b6a1fe3695d1a874a0b",
"source_epoch": "0",
"target_epoch": "4",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,37 +116,43 @@
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "100",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xb89bebc699769726a318c8e9971bd3171297c61aea4a6578a7a4f94b547dcba5bac16a89108b6b6a1fe3695d1a874a0b",
"slot": "101",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa3a32b0f8b4ddb83f1a0a853d81dd725dfe577d4f4c3db8ece52ce2b026eca84815c1a7e8e92a4de3d755733bf7e4a9b",
"slot": "102",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "103",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
},
{
"pubkey": "0xb89bebc699769726a318c8e9971bd3171297c61aea4a6578a7a4f94b547dcba5bac16a89108b6b6a1fe3695d1a874a0b",
"slot": "104",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
},
{
"pubkey": "0xa3a32b0f8b4ddb83f1a0a853d81dd725dfe577d4f4c3db8ece52ce2b026eca84815c1a7e8e92a4de3d755733bf7e4a9b",
"slot": "105",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
}
],
"attestations": [
Expand All @@ -155,63 +161,72 @@
"source_epoch": "12",
"target_epoch": "13",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"source_epoch": "11",
"target_epoch": "14",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xb89bebc699769726a318c8e9971bd3171297c61aea4a6578a7a4f94b547dcba5bac16a89108b6b6a1fe3695d1a874a0b",
"source_epoch": "12",
"target_epoch": "13",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xb89bebc699769726a318c8e9971bd3171297c61aea4a6578a7a4f94b547dcba5bac16a89108b6b6a1fe3695d1a874a0b",
"source_epoch": "11",
"target_epoch": "14",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa3a32b0f8b4ddb83f1a0a853d81dd725dfe577d4f4c3db8ece52ce2b026eca84815c1a7e8e92a4de3d755733bf7e4a9b",
"source_epoch": "12",
"target_epoch": "13",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa3a32b0f8b4ddb83f1a0a853d81dd725dfe577d4f4c3db8ece52ce2b026eca84815c1a7e8e92a4de3d755733bf7e4a9b",
"source_epoch": "11",
"target_epoch": "14",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"source_epoch": "12",
"target_epoch": "14",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
},
{
"pubkey": "0xb89bebc699769726a318c8e9971bd3171297c61aea4a6578a7a4f94b547dcba5bac16a89108b6b6a1fe3695d1a874a0b",
"source_epoch": "13",
"target_epoch": "14",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
},
{
"pubkey": "0xa3a32b0f8b4ddb83f1a0a853d81dd725dfe577d4f4c3db8ece52ce2b026eca84815c1a7e8e92a4de3d755733bf7e4a9b",
"source_epoch": "13",
"target_epoch": "14",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,21 +192,24 @@
"source_epoch": "0",
"target_epoch": "4",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xb89bebc699769726a318c8e9971bd3171297c61aea4a6578a7a4f94b547dcba5bac16a89108b6b6a1fe3695d1a874a0b",
"source_epoch": "1",
"target_epoch": "2",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa3a32b0f8b4ddb83f1a0a853d81dd725dfe577d4f4c3db8ece52ce2b026eca84815c1a7e8e92a4de3d755733bf7e4a9b",
"source_epoch": "1",
"target_epoch": "2",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "20",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"slot": "50",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
}
],
"attestations": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,35 +54,40 @@
"source_epoch": "10",
"target_epoch": "20",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"source_epoch": "10",
"target_epoch": "21",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"source_epoch": "9",
"target_epoch": "21",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"source_epoch": "9",
"target_epoch": "22",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": false
"should_succeed": false,
"should_succeed_complete": false
},
{
"pubkey": "0xa99a76ed7796f7be22d5b7e85deeb7c5677e88e511e0b337618f8c4eb61349b4bf2d153f649f7b53359fe8b94a38e44c",
"source_epoch": "10",
"target_epoch": "22",
"signing_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"should_succeed": true
"should_succeed": true,
"should_succeed_complete": true
}
]
}
Expand Down
Loading

0 comments on commit a218a99

Please sign in to comment.