Hsiao-Wei Wang
bb63af53c9
Refactor genesis.py
2021-04-15 15:40:38 +08:00
Hsiao-Wei Wang
62c828bd4b
Merge branch 'dev' into prepare_state
2021-04-13 20:50:13 +08:00
Hsiao-Wei Wang
cd43d64809
Move constants to `eth2spec.test.helpers.constants`
2021-04-12 22:34:00 +08:00
Hsiao-Wei Wang
a8160f1634
Try to initialize state with pure Altair spec in tests
2021-04-10 00:53:37 +08:00
protolambda
d28cac0e8f
clean up test phase 1 testgen references
2021-03-29 15:38:43 +02:00
protolambda
2bc3e814b0
rename to custody game
2021-03-27 01:58:39 +01:00
protolambda
0c94be4204
clean up more phase1 test references
2021-03-27 00:14:32 +01:00
protolambda
4a82a375ae
avoid altair fork version collision, update test prep, fix genesis state creator bug
2021-03-21 22:07:28 +01:00
Danny Ryan
e2c9a15aaf
Merge pull request #2246 from ethereum/sync_rewards
...
refactor sync committee rewards
2021-03-16 20:27:04 -06:00
Justin Drake
27e88a2484
(WIP) refactor sync committee rewards
2021-03-16 15:30:25 +00:00
Danny Ryan
0a97f65729
Merge pull request #2243 from ethereum/fix-altair-gens
...
fix altair test generators
2021-03-16 08:26:29 -06:00
Danny Ryan
85d323c227
Merge pull request #2242 from ethereum/sync_aggregate
...
Define SyncAggregate to bundle sync committee bits and signature
2021-03-15 15:48:20 -06:00
protolambda
1eaa3c1742
Define SyncAggregate to bundle sync committee bits and signature, update tests to better isolate the state-change, introduce helper function for future tests, and update test doc
2021-03-15 21:55:36 +01:00
Danny Ryan
06eed71856
fix altair test generators
2021-03-15 13:10:19 -06:00
Danny Ryan
4afb6533a2
suffix ALTAIR on update constants
2021-03-15 11:46:53 -06:00
Danny Ryan
b8bf7f0f80
Merge pull request #2236 from ethereum/justin_altair_cleanups
...
Altair cosmetic cleanups plus a couple substantive changes
2021-03-15 08:57:35 -06:00
Justin Drake
8e815dd3f7
revert rename of to
2021-03-15 11:25:59 +00:00
Justin Drake
5a16f99302
Fix line too long
2021-03-15 11:21:05 +00:00
Justin Drake
e7ebd08d69
Altair cosmetic cleanups plus a couple substantive changes
2021-03-15 11:08:41 +00: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
Hsiao-Wei Wang
e77ba91821
Apply proto's feedback, fix+refactor test_get_head, fix test format doc
...
Note that to execute on_attestation after on_block
Output more checking field
Disable mainnet config test_filtered_block_tree
Fix after rectoring + use more run_on_block
Fix and refactor `tick_and_run_on_attestation`
2021-03-13 00:29:35 +08:00
Danny Ryan
65dcf897c2
Merge pull request #2147 from ethereum/lightclient-sync-exe
...
Make `sync-protocol.md` pass the linter and add basic tests
2021-03-12 07:52:45 -07:00
Hsiao-Wei Wang
c34eae33d0
Merge branch 'dev' into lightclient-sync-exe
2021-03-12 00:49:29 +08:00
Hsiao-Wei Wang
216bbb0a46
Merge branch 'dev' into fork-choice-test-vectors
2021-03-12 00:34:23 +08:00
Danny Ryan
79f351cfca
Merge branch 'dev' into leak-scores
2021-03-11 09:28:58 -07:00
Hsiao-Wei Wang
96e29841a7
Merge branch 'dev' into fork-choice-test-vectors
2021-03-11 23:45:54 +08:00
Hsiao-Wei Wang
b44e576e95
LIGHTCLIENT_PATCH/HF1 -> ALTAIR
2021-03-11 21:32:00 +08:00
Hsiao-Wei Wang
2de64cbda1
Add `process_light_client_update` tests
2021-03-11 21:06:58 +08:00
Danny Ryan
36b6f8c3bf
Merge branch 'dev' into lightclient-sync-exe
2021-03-10 16:25:01 -07:00
Danny Ryan
e2abdb74ae
port testing
2021-03-09 15:41:28 -07:00
Danny Ryan
deace8768e
port @justindrake's general cleanups from #2212
2021-03-01 19:41:28 -07:00
Hsiao-Wei Wang
27507fb3e2
Add `get_head` test vectors
2021-02-19 13:08:35 +08:00
Hsiao-Wei Wang
dda7010c0c
Fix the tests that use `MIN_SLASHING_PENALTY_QUOTIENT`. (The mainnet tests failed before this fix)
2021-02-13 23:02:06 +08:00
Danny Ryan
34cea67b91
ValidatorFlags -> ValidatorFlag
2021-02-04 08:45:25 -07:00
protolambda
3677073812
bitvector[8] -> uint8, for efficient packing in flags merkle tree
2021-02-01 21:46:27 +01:00
Danny Ryan
1ba4917119
add process_attestation tests to cover various timing and correctness scenarios
2021-02-01 08:35:58 -07:00
Danny Ryan
b029c75d88
must be correct target to get correct head
2021-02-01 07:52:06 -07:00
Danny Ryan
ad01c85ff6
minor reorder to process_epoch calls
2021-02-01 07:06:29 -07:00
Hsiao-Wei Wang
6ce4b1b0e7
Fix tests
2021-01-29 10:39:13 -07:00
Danny Ryan
46848e4202
Merge branch 'dev' into accounting-reform
2021-01-29 08:49:51 -07:00
Hsiao-Wei Wang
1b00c10ed3
Apply @michaelsproul's feedback
2021-01-27 14:47:52 +08:00
Hsiao-Wei Wang
93d19bdf40
Update and add tests
2021-01-19 22:03:01 +08:00
Hsiao-Wei Wang
a340f30e61
Merge branch 'dev' into accounting-reform
2021-01-13 14:44:17 +08:00
Hsiao-Wei Wang
252c331255
Fix existing tests on #2176 (accounting reform) ( #2180 )
...
* Fixing tests
* Add `is_post_lightclient_patch` helper to determine the fork version condition
2021-01-13 14:29:18 +08:00
Alex Stokes
1a3fefcc93
Refactor epoch processing test helpers
2021-01-07 10:55:51 -08:00
Alex Stokes
049075b44a
Refactor sync committee helpers
2021-01-07 10:42:21 -08:00
Hsiao-Wei Wang
9c75c3819d
Fix `previous_epoch_participation` and `current_epoch_participation` initialization
2021-01-06 02:09:39 +08:00
Hsiao-Wei Wang
d01a4ad823
Fix depth calculation...again(!) and add unittests
2020-12-16 15:01:22 +08:00
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