Commit Graph

334 Commits

Author SHA1 Message Date
Hsiao-Wei Wang acfe49e3f3
executable light client patch: beacon-chain.md (#2141)
* Bump remerkleable to 0.1.18

* Disable `sync-protocol.md` for now. Make linter pass

* Enable lightclient tests

* Use *new* `optional_fast_aggregate_verify`

* Fix ToC and codespell

* Do not run phase1 tests with Lightclient patch

* Fix the Eth1Data casting bug. Add a workaround.

* Fix `run_on_attestation` testing helper

* Revert

* Rename `optional_fast_aggregate_verify` to `eth2_fast_aggregate_verify`

* Apply Proto's suggestion

* Apply Danny's suggestion

* Fixing tests

* Fix after rebasing

* Rename `LIGHTCLIENT` -> `LIGHTCLIENT_PATCH`

* New doctoc

* Add lightclient patch configs

* fix gitignore light client patch generator output

* Upgrade state for light client patch

* Add `lightclient-fork.md` to deal the fork boundary and fix
`process_block_header`

* Misc cleanups

1) Add a summary note for every function that is changed.
2) Avoid changing `process_block` (instead only change `process_block_header`).
3) Rename `G2_INFINITY_POINT_SIG` to `G2_POINT_AT_INFINITY` to avoid `SIG` contraction.
4) Misc cleanups

* Update block.py

* Update beacon-chain.md

* Fix typo "minimal" -> "mainnet"

Co-authored-by: Marin Petrunić <mpetrunic@users.noreply.github.com>

* Use the new `BeaconBlockHeader` instead of phase 0 version

* Update config files

* Move `sync_committee_bits` and `sync_committee_signature` back to `BeaconBlockBody`

Co-authored-by: protolambda <proto@protolambda.com>
Co-authored-by: Justin <drakefjustin@gmail.com>
Co-authored-by: Marin Petrunić <mpetrunic@users.noreply.github.com>
2020-12-15 13:18:20 +08:00
Danny Ryan 226f1d4dfc
fix multi-operation test runner helper 2020-11-06 07:05:52 -06:00
Danny Ryan 7589af8e8d
remove wip notice on phase 0 specs 2020-11-04 09:30:29 -06:00
Danny Ryan 15270b7933
bump VERSION.txt to 1.0.0 2020-11-03 17:15:36 -06:00
Danny Ryan 276ca6d4d3
pr feedback
Co-authored-by: Diederik Loerakker <proto@protolambda.com>
2020-11-03 16:27:47 -06:00
Danny Ryan a8c1d21589
add attestation test for off by one committee index 2020-11-03 15:49:34 -06:00
Danny Ryan f7a9493ca0
multi-op tests 2020-10-20 17:00:16 -06:00
Danny Ryan a34970f8a3
move op tests to test_blocks 2020-10-16 08:27:28 -06:00
Danny Ryan aab58e4700
update sanity generators to generate the oepration block tests as well 2020-10-14 17:41:11 -06:00
Danny Ryan c17a95a175
add note about how slashings and exits can interact. add test 2020-10-14 17:33:14 -06:00
Danny Ryan a61c56a6b6
add a few rewards tests for duplicate style attestations 2020-10-13 16:15:35 -06:00
Danny Ryan 2e09c91e39
fix test generators for mainnet max slashing penalties 2020-10-06 11:34:33 -06:00
Hsiao-Wei Wang 00a19e583e
Bump milagro_bls_binding to 1.5.0 2020-10-06 16:17:29 +08:00
Hsiao-Wei Wang d264ad8af7
Merge pull request #2080 from ethereum/bls_v4
Bump IETF BLS spec version draft 03 -> draft 04
2020-10-05 22:12:52 +08:00
Hsiao-Wei Wang 4d3ac72473
Bump milagro_bls_binding to `1.4.0`, handle the exception cases 2020-10-05 21:55:49 +08:00
Danny Ryan 9f36fd6954
PR feedback. thanks @hwwhww 2020-09-29 10:02:28 -06:00
Danny Ryan 0e2e494d7e
fix function signature calls on deposit helpers 2020-09-28 20:25:24 -06:00
Danny Ryan 76d69263fc
use better rng practice for reproducibility 2020-09-28 18:26:03 -06:00
Danny Ryan 4e2c7d20b7
add additional genesis initialization tests 2020-09-28 17:55:54 -06:00
Danny Ryan 157f7e8ef4
upgrade config to mainnet values 2020-09-28 12:56:08 -06:00
Hsiao-Wei Wang 19d6c8336a
Add IETF BLS draft 04 edge cases test vectors 2020-09-25 15:01:38 +08:00
Danny Ryan 68bcc19e09
Merge pull request #1957 from ethereum/testgenphase1
Enable test generation for phase1
2020-09-18 08:44:38 -06:00
Danny Ryan d257926e3a
remove kludge to skip large_validator_set on mainnet config 2020-09-18 07:59:25 -06:00
Hsiao-Wei Wang 27d8c80690
Use `with_configs[MINIMAL]` on `large_validator_set` tests 2020-09-18 17:05:30 +08:00
Danny Ryan 0c1784b8b5
skip large_validator_set tests if too large 2020-09-17 16:50:59 -06:00
Danny Ryan 92d4a063c1
bump VERSION.txt to 0.12.3 2020-09-17 12:14:17 -06:00
Hsiao-Wei Wang 5374890da0
Merge branch 'dev' into testgenphase1 2020-09-17 21:11:49 +08:00
Danny Ryan 7c685d490e
Merge pull request #2061 from ethereum/anchor_block_header_3
Pass `anchor_block` to `get_forkchoice_store`
2020-09-15 10:10:29 -06:00
Hsiao-Wei Wang 1e29563242
Pass `anchor_block` to `get_forkchoice_store` 2020-09-15 12:51:11 +08:00
Danny Ryan 1785f987f8
add a few more proposer slashing tests 2020-09-10 16:50:03 -06:00
protolambda 28137a6176
Merge branch 'dev' into testgenphase1 2020-09-09 23:43:26 +02:00
Hsiao-Wei Wang fd4e7dde94
Fix `disable_process_reveal_deadlines` decorator: should have set it back to the spec function for other test cases afterwards 2020-09-07 13:44:12 +08:00
Hsiao-Wei Wang a0d646e1e0
Add decorators to diable testing with mainnet config 2020-09-04 21:50:21 +08:00
Hsiao-Wei Wang dc888178be
Merge branch 'testgenphase1' into reveal_deadlines_setting 2020-09-02 00:07:19 +08:00
Hsiao-Wei Wang b4583aba5d
Add skipping messages to some old test cases 2020-08-28 14:52:41 +08:00
Hsiao-Wei Wang 458166af83
Update the pytest version to >=4.4 as eth2spec 2020-08-27 16:12:31 +08:00
Hsiao-Wei Wang 42f368c45c
Disable `process_reveal_deadlines` in the custody tests that have `EPOCHS_PER_CUSTODY_PERIOD`-long transition 2020-08-25 13:46:29 +08:00
Hsiao-Wei Wang 7eeb754f7d
Add `disable_process_reveal_deadlines` decorator 2020-08-13 18:06:36 +08:00
Hsiao-Wei Wang 6289664260
Update testing context
1. Add `with_configs` decorator to assign available configs
2. Add `only_full_crosslink` decorator to detect if the configuation can
do full crosslinking
3. Add `context.is_pytest` flag: True if calling via pytest. False if
calling from test generator.
2020-08-12 21:50:14 +08:00
Hsiao-Wei Wang 83760b15ac
Use v-guide's `get_custody_secret` 2020-08-12 17:39:44 +08:00
Hsiao-Wei Wang 643611aa6d
Merge pull request #2010 from ethereum/fix-shard-count
Fix active shard count issues
2020-08-12 03:05:16 +08:00
Hsiao-Wei Wang 52ba90d719
Skip the testcases that don't support the fork or the config 2020-08-11 16:19:20 +08:00
Hsiao-Wei Wang 3e5cada5de
Merge branch 'dev' into testgenphase1 2020-08-11 15:24:43 +08:00
Hsiao-Wei Wang 7ce10dd210
Remove unused `get_attestation_custody_signature` 2020-08-11 12:48:13 +08:00
Danny Ryan b02c2e1c49
fix randao mix in sanity tests 2020-08-10 21:00:23 -06:00
Danny Ryan 8b39d41145
PR feedback 2020-08-10 13:06:20 -06:00
Danny Ryan 76c96782e2
fix disable-bls default value 2020-08-10 12:58:57 -06:00
Danny Ryan c3ae85387c
add larger validator set test for regression test for active_shard_count issue 2020-08-05 13:26:21 -06:00
Danny Ryan 56dbc17793
fix active shard count bugs 2020-08-05 12:44:31 -06:00
Hsiao-Wei Wang 6a9dd1647c
Merge branch 'dev' into shard-fork-choice-fix 2020-07-30 01:13:50 +08:00