122 Commits

Author SHA1 Message Date
Alex Stokes
cdf1914e98
Extend randomized block tests to all phases
Some existing randomized block tests only ran for phase 0,
when they should run for all phases to increase overall test coverage.
2021-08-19 11:00:14 -06:00
Hsiao-Wei Wang
3a9dcbadf0
Merge pull request #2487 from ethereum/on-block-tests
Rework + add some `on_block` tests
2021-08-17 21:21:44 +08:00
Hsiao-Wei Wang
93af122b2d
PR feedback from @ralexstokes and add single pubkey aggregate tests 2021-08-05 12:09:30 +08:00
Danny Ryan
f460870c11
clean up some leak tests 2021-07-08 12:50:45 -06:00
Hsiao-Wei Wang
27763bdd86
clean up 2021-06-30 05:40:26 +08:00
Hsiao-Wei Wang
29a93f6285
Move more unit tests to test vectors 2021-06-30 04:55:41 +08:00
Hsiao-Wei Wang
f55afefe90
Move more tests from unittests to testgen tests
- `test_on_block_before_finalized`
- `test_on_block_finalized_skip_slots`
- `test_on_block_finalized_skip_slots_not_in_skip_chain`
2021-06-23 04:58:27 +08:00
Hsiao-Wei Wang
69a645aa8b
Apply PR feedback 2021-06-23 04:50:13 +08:00
Hsiao-Wei Wang
88be6cdf60
Apply Danny's suggestions from code review
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2021-06-22 20:55:52 +08:00
Hsiao-Wei Wang
83598af188
Add test_new_justified_is_later_than_store_justified and fix test
cases

- Fix `on_tick` calls
- Refactor test cases
2021-06-22 20:04:47 +08:00
Hsiao-Wei Wang
2445fe5a76
Add new test cases
- `test_new_finalized_slot_is_not_justified_checkpoint_ancestor`
- `test_new_finalized_slot_is_justified_checkpoint_ancestor`
2021-06-19 02:03:37 +08:00
Hsiao-Wei Wang
fb2465db45
Rework on_block unit tests 2021-06-19 02:03:33 +08:00
Hsiao-Wei Wang
42eae81013
WIP. Rework on_block tests 2021-06-15 21:52:25 +08:00
Danny Ryan
5c1cb153aa
Merge branch 'dev' into attester-proposer-slashing 2021-06-14 15:08:10 -06:00
Danny Ryan
a5762cbad8
add attestesr slashing for proposer, and some future slashing tests woo 2021-06-09 16:56:32 -06:00
Danny Ryan
1ade07d705
fix mismatched proposer test names 2021-06-09 16:31:20 -06:00
Danny Ryan
8ba740a93a
Merge branch 'dev' into invariant-checks 2021-06-07 08:12:27 -06:00
Danny Ryan
7710d4fa5c
add a few more preset/config invariants 2021-06-07 07:55:04 -06:00
Hsiao-Wei Wang
67809e76e1
Fix tests 2021-06-02 01:40:54 +08:00
Hsiao-Wei Wang
b5f9b5d74f
Add more checks 2021-05-26 01:21:04 +08:00
Hsiao-Wei Wang
69f2a31406
Add some config invariant checks 2021-05-26 01:10:40 +08:00
Alex Stokes
c9f3780565
Clean up outdated attestation helper 2021-05-24 11:54:28 -07:00
protolambda
c080324e08
set RNG for test case for consistent test outputs 2021-05-19 19:07:24 +02:00
protolambda
46bb8273df
update ejection balance config references 2021-05-19 17:43:56 +02:00
protolambda
e8b0c46138
misc test fixes for new config approach 2021-05-18 14:45:56 +02:00
protolambda
1e7c5b1f83
fix config usage of MIN_GENESIS_ACTIVE_VALIDATOR_COUNT 2021-05-18 13:56:42 +02:00
protolambda
d3bf218361
update config usages 2021-05-18 12:56:34 +02:00
protolambda
d0fef3bf3f
update tests with new config util 2021-05-18 09:58:50 +02:00
Danny Ryan
699a3f837e
pr feedback 2021-05-13 13:38:43 -06:00
Danny Ryan
fa1bdabace
add random inactivity scores tests 2021-05-12 14:23:11 -06:00
protolambda
00cd1c3db7
fix forkchoice unittest not recognizing merge spec 2021-05-05 16:31:28 +02:00
Danny Ryan
6031417444
Merge pull request #2301 from ethereum/fix-bouncing-attack-tests
Fix bouncing attack tests
2021-04-27 07:51:46 -06:00
Danny Ryan
1694cdbd02
add always_bls for historical batch sanity test 2021-04-20 13:40:25 -06:00
Hsiao-Wei Wang
cd43d64809
Move constants to eth2spec.test.helpers.constants 2021-04-12 22:34:00 +08:00
Aditya Asgaonkar
9e5ee0a083 Remove unnecesssary change 2021-04-03 17:43:18 -07:00
Aditya Asgaonkar
5194dd123c TIL fictitious 2021-04-03 17:26:12 -07:00
Aditya Asgaonkar
9ec252e6f2 Fix linter 2021-04-03 17:22:33 -07:00
Aditya Asgaonkar
6e6afac86f Remove unnecessary asserts 2021-04-03 17:17:43 -07:00
Aditya Asgaonkar
21b878364a Fix checkpoint hierarchy consistency in tests 2021-04-03 17:09:08 -07:00
Aditya Asgaonkar
2478e1526a Fix block hierarchy consistency in tests 2021-04-03 16:50:43 -07:00
Aditya Asgaonkar
9eb662786a Add consistency checks in on_block tests 2021-04-01 06:33:37 -07:00
protolambda
d28cac0e8f
clean up test phase 1 testgen references 2021-03-29 15:38:43 +02:00
protolambda
0c94be4204
clean up more phase1 test references 2021-03-27 00:14:32 +01:00
Danny Ryan
6c0a0ab3f2
patch test_filtered_block_tree test generator based on @ajsutton report 2021-03-24 12:57:14 -06:00
protolambda
4dd855667a
fix mixed up formats. Output slots as ints, output genesis eth1 init data as yaml dict 2021-03-22 02:50:05 +01:00
Danny Ryan
4afb6533a2
suffix ALTAIR on update constants 2021-03-15 11:46:53 -06:00
Hsiao-Wei Wang
64dbcdce35
Use @with_all_phases 2021-03-16 01:10:18 +08:00
Hsiao-Wei Wang
734863a6d6
Skip mainnet genesis tests 2021-03-16 00:46:57 +08:00
Hsiao-Wei Wang
78211a3649
Enable Altair genesis tests 2021-03-16 00:00:04 +08:00
Hsiao-Wei Wang
5dcc9927c8
Merge pull request #2202 from ethereum/fork-choice-test-vectors
fork-choice test vectors: starting with `get_head` tests
2021-03-13 12:08:33 +08:00