Alex Stokes
db2be42baa
use a specific `spec` rather than the pre-defined phases
2021-12-07 18:50:00 +01:00
Alex Stokes
55c9c03f08
simply module import and fix config adjustment
2021-12-07 18:22:10 +01:00
Alex Stokes
733f37715e
use `importlib` to perform an actual spec copy
2021-12-07 17:55:17 +01:00
Alex Stokes
57be9d064f
update per-test config to be unique per-test
2021-12-07 17:13:26 +01:00
Hsiao-Wei Wang
200ed58dd9
Merge branch 'dev' into ex-ante-tests
2021-12-07 18:29:48 +08:00
Hsiao-Wei Wang
876c5b0944
Merge pull request #2760 from ethereum/fix-proposer-boost-apply
...
Apply proposer boost to ancestors correctly
2021-12-07 17:55:30 +08:00
Hsiao-Wei Wang
9dc1b7af7e
Test with strict `proposer_boost + 1` attestation participants
2021-12-07 00:25:26 +08:00
Paul Hauner
c99e48c60c
Add first efforts
2021-12-06 10:07:54 +11:00
Danny Ryan
3a9777eebc
Update specs/phase0/fork-choice.md
2021-12-02 14:00:06 -07:00
Danny Ryan
365b1f46f9
remove unnecessary definitions from CapellaSpecBuilder
2021-12-02 12:33:58 -07:00
Danny Ryan
59d48210a1
fix forkchoice tests
2021-12-02 12:10:46 -07:00
Danny Ryan
6969c8af67
lint
2021-12-02 12:03:51 -07:00
Danny Ryan
180abb90ec
clean up some withdrawal logic and add tests
2021-12-02 11:56:33 -07:00
Danny Ryan
2010994d10
add capella circleci workflow
2021-12-02 11:56:05 -07:00
Hsiao-Wei Wang
6308cee7a6
Fix typo
2021-12-03 02:17:57 +08:00
Aditya Asgaonkar
0d8fab3986
Apply Danny's suggestion
2021-12-02 09:57:28 -08:00
Danny Ryan
3024dc8ba8
add withdrawn_epoch to capella validators
2021-12-02 10:52:56 -07:00
Danny Ryan
ca74094605
Apply suggestions from code review
...
Co-authored-by: Mikhail Kalinin <noblesse.knight@gmail.com>
2021-12-02 10:31:56 -07:00
Hsiao-Wei Wang
a399d953d3
Add assertion to `test_shorter_chain_but_heavier_weight`
2021-12-02 17:21:42 +08:00
Aditya Asgaonkar
6f3379c7be
Apply HWW's suggestion
...
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2021-12-01 20:11:52 -08:00
Aditya Asgaonkar
3e2890bb3e
Apply proposer boost to ancestors correctly
2021-12-01 18:03:40 -08:00
Danny Ryan
78d55839b9
fix tsts
2021-12-01 16:42:12 -07:00
Danny Ryan
b7308e0953
remove capella built files
2021-12-01 11:43:32 -07:00
Danny Ryan
155863d86d
add capella to circleci build
2021-12-01 11:40:54 -07:00
Danny Ryan
4f24fe455b
basic capella withdrawal in place
2021-12-01 11:37:30 -07:00
Hsiao-Wei Wang
dc52b35145
Add `PROPOSER_SCORE_BOOST` to meta.yaml and fix comments
2021-12-02 01:37:01 +08:00
Hsiao-Wei Wang
bb8168fd95
Make config dict compatible with yaml.dump
2021-12-02 01:34:35 +08:00
Danny Ryan
4d35748ff0
Merge pull request #2754 from ethereum/dankrad-patch-1
...
Correct primitive root
2021-12-01 08:15:27 -07:00
Danny Ryan
37eae2a6d6
Merge pull request #2753 from realbigsean/simplify-proposer-score-logic
...
Simplify logic in calculating proposer score
2021-12-01 08:14:48 -07:00
dankrad
ad588d79f6
Update beacon-chain.md
...
5 is not a primitive root of the BLS field, it needs to be 7
2021-11-30 22:52:16 +00:00
realbigsean
0bc0769767
Simplify logic in calculating proposer score
2021-11-30 15:44:56 -05:00
Hsiao-Wei Wang
d7f6a42729
[WIP] Add ex-ante fork choice test cases
2021-12-01 02:37:22 +08:00
Hsiao-Wei Wang
402c663b51
Fix function name leftover
2021-11-30 21:57:43 +08:00
vbuterin
c30662b696
Consistently use sum instead of count(1)
2021-11-30 06:39:25 -06:00
Hsiao-Wei Wang
7de1495a42
Fix lint ( #2750 )
2021-11-30 06:38:42 -06:00
Alex Stokes
a20ed3475d
Merge pull request #2740 from asanso/patch-4
...
re-enable dropped ssz test generators
2021-11-30 02:39:23 -08:00
vbuterin
6fa19705fb
Clarified next sync committee comment
2021-11-29 07:05:01 -06:00
vbuterin
06af6296c5
Updated in response to comments
2021-11-29 07:04:05 -06:00
vbuterin
c4f70970c4
Update specs/altair/sync-protocol.md
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-11-28 08:31:48 -06:00
vbuterin
77188726de
Fixed ToC and get_active_header positioninf
2021-11-27 07:27:16 -06:00
vbuterin
e104164960
Rework data structures ( #2747 )
...
1. Replace `header` and `finality_header` with `attested_header` (always the header signed by the committee) and `finailzed_header` (always the header verified by the Merkle branch)
2. Remove `LightClientSnapshot`, fold its fields into `LightClientStore` for simplicity
2021-11-27 07:25:27 -06:00
vbuterin
013e814d2d
Update sync-protocol.md
2021-11-26 15:32:37 -06:00
vbuterin
25f2efab19
Simplify sync protocol and update to calculate optimistic heads
...
1. Simplify `valid_updates` to `best_valid_update` so the `LightClientStore` only needs to store O(1) data
2. Track an optimistic head, by looking for the highest-slot header which passes a safety threshold
2021-11-26 15:11:19 -06:00
Danny Ryan
e1356aec83
Merge pull request #2745 from mkalinin/clarify-forkchoice-updated
...
Bring more clarity to notify_forkchoice_updated calls
2021-11-26 06:54:37 -07:00
Danny Ryan
d237491dfe
minor typo
2021-11-26 06:47:05 -07:00
Danny Ryan
96b856f7fa
Merge pull request #2741 from mkalinin/remove-client-settings-doc
...
Remove client-settings.md
2021-11-26 06:42:47 -07:00
Mikhail Kalinin
7a8f236679
Fix notify_forkchoice_updated description as per review
2021-11-25 16:33:30 +06:00
Mikhail Kalinin
b4377333fa
Polish notify_forkchoice_updated description as per review
...
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2021-11-25 16:27:59 +06:00
Mikhail Kalinin
6ece777ff5
Bring more clarity to notify_forkchoice_updated calls
2021-11-24 20:32:27 +06:00
Mikhail Kalinin
00bede5908
Remove client-settings.md
2021-11-24 17:00:32 +06:00