Commit Graph

6775 Commits

Author SHA1 Message Date
Etan Kissling
370b9e86e3 pass sync committee sig consistently in tests
There are three defined unit tests for the light client sync protocol.
They all follow a similar structure. However, there is an inconcistency
how they pass the slot to compute_aggregate_sync_committee_signature.
In one instance it is passed as `block.slot`. In the other two cases
it is passed as `block_header.slot`. As the `block_header` is created
from the `block`, they share the same value. This patch makes the way
how the slot is passed consistent across all of the test cases.
2021-09-15 21:34:10 +02:00
Hsiao-Wei Wang
ac4156a910 Merge pull request #2597 from ethereum/ralexstokes-patch-1
Rename client_settings.md to client-settings.md
2021-09-14 22:41:12 +08:00
Hsiao-Wei Wang
a3ea4c20a1 Merge pull request #2596 from etan-status/is-built-typo
"is build" -> "is built" typo
2021-09-14 22:40:10 +08:00
Alex Stokes
899bde0873 Rename client_settings.md to client-settings.md 2021-09-13 06:31:11 -07:00
Etan Kissling
559ca86e2a "is build" -> "is built" typo
Corrects a typo in a Makefile comment.
2021-09-10 16:56:27 +02:00
Danny Ryan
70de0c3fa3 Merge pull request #2594 from ethereum/fix-agg-test
fix sync agg test for mainnet
2021-09-09 20:05:10 -06:00
Danny Ryan
d6b5cbd94c fix sync agg test for mainnet 2021-09-09 19:53:30 -06:00
Danny Ryan
8683c1758d Merge pull request #2593 from ethereum/bump-version
bump version.txt to 1.1.0-beta.4
2021-09-09 19:25:09 -06:00
Danny Ryan
8f064d104f bmp version.txt to 1.1.0-beta-4 2021-09-09 17:11:27 -06:00
Danny Ryan
a3e2e79ce7 Merge pull request #2591 from ralexstokes/add-exited-sync-comm-member-test
Add sync committee tests with exited and withdrawable members
2021-09-09 17:09:10 -06:00
Alex Stokes
0cee5660db pr feedback 2021-09-09 15:43:42 -07:00
Danny Ryan
b660892ca3 Merge pull request #2586 from ethereum/churn-test
Add churn tests for when churn limit scales with v-set size
2021-09-09 16:41:37 -06:00
Danny Ryan
dd6a01c66d Merge pull request #2588 from ralexstokes/add-rewards-exit-test-in-current-epoch
add rewards spec test with exit in current epoch
2021-09-09 16:41:15 -06:00
Danny Ryan
5348b9a3b9 randomize state can result in some exited vals for current epoch 2021-09-09 15:56:08 -06:00
Danny Ryan
a47ade3ba6 pr feedback 2021-09-09 15:27:23 -06:00
Alex Stokes
c0994e6736 Add sync committee tests with exited and withdrawable members 2021-09-09 13:27:54 -07:00
Lakshman Sankar
39788054ca Merge pull request #2587 from lsankar4033/merge-ttd-override
terminal total difficulty override setting
2021-09-09 11:47:22 -07:00
lsankar4033
879a60a169 Run doctoc 2021-09-09 08:45:21 -07:00
Lakshman Sankar
83471fe461 Apply suggestions from code review
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2021-09-09 08:38:33 -07:00
Lakshman Sankar
252f4ea14a Wording change
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2021-09-09 08:37:39 -07:00
Lakshman Sankar
771933d1a7 Stronger language around usage of the setting
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2021-09-09 08:37:27 -07:00
Lakshman Sankar
385ee12ef0 'should' -> 'must'
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2021-09-09 08:36:54 -07:00
Lakshman Sankar
de1487564a Wording change
Co-authored-by: Mikhail Kalinin <noblesse.knight@gmail.com>
2021-09-09 08:36:42 -07:00
Lakshman Sankar
10f4ea4b51 Wording change
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2021-09-09 08:36:25 -07:00
Alex Stokes
989cd38041 add rewards spec test with exit in current epoch 2021-09-08 20:24:22 -07:00
lsankar4033
a542a07578 Fix links 2021-09-08 13:06:22 -07:00
lsankar4033
0f7d8e5552 Add notes in merge/fork.md 2021-09-08 13:03:05 -07:00
lsankar4033
01fe3cdb08 Add note about default behavior 2021-09-08 12:57:49 -07:00
lsankar4033
49d225bb78 Add new --terminal-total-difficulty-override client_setting 2021-09-08 12:34:33 -07:00
Hsiao-Wei Wang
d23444a2db Merge pull request #2577 from ethereum/fix-fork-choice-tests
Fix fork choice `on_block` tests and update test format
2021-09-08 21:35:32 +08:00
Danny Ryan
8220f7dd44 ensure new dynamic queue tests don't run for mainnet cofig 2021-09-08 07:31:13 -06:00
Hsiao-Wei Wang
5bc59d8aab Fix the comments 2021-09-08 21:22:48 +08:00
Danny Ryan
6784025d64 add scaled churn limit tests for voluntary exits 2021-09-07 20:49:54 -06:00
Danny Ryan
43e79a7ee0 add process_registry_updates tests for scaled churn limit 2021-09-07 20:34:28 -06:00
Danny Ryan
4faff4f899 Merge pull request #2580 from ralexstokes/add-rewards-test-case-for-exited-vals
Add test cases to ensure coverage with exited validators
2021-09-07 16:11:53 -06:00
Alex Stokes
14f71ffb4b Use realistic withdrawable_epoch in spec test 2021-09-07 12:53:06 -07:00
Alex Stokes
064b489d18 Use spec function for total active balance 2021-09-07 12:23:57 -07:00
Alex Stokes
fb4a4f6694 Update tests/core/pyspec/eth2spec/test/altair/block_processing/sync_aggregate/test_process_sync_aggregate_random.py
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2021-09-07 13:09:23 -06:00
Danny Ryan
ccd48d7286 Merge pull request #2579 from ethereum/fix-process_and_sign_block_without_header_validations
Fix testing helper `process_and_sign_block_without_header_validations`
2021-09-07 12:57:26 -06:00
Danny Ryan
5e1448db51 Merge pull request #2584 from ralexstokes/restore-eth1-data-tests
fix test filtering on eth1 voting spec test
2021-09-02 17:10:51 -06:00
Alex Stokes
25c290474f fix test filtering on eth1 voting spec test 2021-09-02 15:50:26 -07:00
Alex Stokes
4168943ecf Update tests/core/pyspec/eth2spec/test/helpers/random.py 2021-09-02 15:38:52 -06:00
Alex Stokes
30596fb8a1 Update tests/core/pyspec/eth2spec/test/altair/block_processing/sync_aggregate/test_process_sync_aggregate_random.py 2021-09-02 15:35:15 -06:00
Alex Stokes
d834b6e800 add active/exited balances test for justification 2021-09-02 12:37:11 -07:00
Alex Stokes
bd38587a1e add active/exited balances test for process_slashings 2021-09-02 09:50:40 -07:00
Alex Stokes
ad076697f4 add test case for active/exited difference for sync rewards processing 2021-09-02 09:50:39 -07:00
Alex Stokes
df89763777 ensure balance differential as a sanity check 2021-09-02 08:48:32 -07:00
Alex Stokes
58c0da9059 ensure rewards spec test with exited validators 2021-09-02 08:48:32 -07:00
Alex Stokes
0cc5f9cd59 modify helper for more precision on exited validators 2021-09-02 08:48:32 -07:00
Alex Stokes
cf23cd00ab ensure the test covers exited, unslashed validators 2021-09-02 08:48:32 -07:00