Commit 9231f97
feat: add 3sf forkchoice specs (leanEthereum#29)
* feat: add devnet0 STF for chain-ing and 3sf mini
* add genesis initalization
* improvements and cleanup
* add main STF
* add block processing
* properly process historical blockhashes and justified slots before voting
* add the voting processing from 3sf mini
* further voting process refinements
* add is justifiable slot
* further improvs
* Update docs/client/chain.md
Co-authored-by: Unnawut Leepaisalsuwanna <921194+unnawut@users.noreply.github.com>
* Update docs/client/chain.md
Co-authored-by: Unnawut Leepaisalsuwanna <921194+unnawut@users.noreply.github.com>
* Update docs/client/chain.md
* Update docs/client/chain.md
* apply votes
* fix the mini 3sf book keeping
* python fix
* add get_justifications and set_justifications impl
* add lean devnet0 forkchoice
* forkchoice updates
* updates
* complete the forkchoice lifecylce
* add validator attestation construction
* add on block fc processing
* add block proposal
* improve the on_tick to take care of registered validator
* cleanup and formatting
* aligning the validator attestation process with the forkchoice
* fix parent root references
* Update docs/client/forkchoice.md
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
* improvements
* Update docs/client/forkchoice.md
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
* Update docs/client/forkchoice.md
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
* Update docs/client/forkchoice.md
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
* update on attestation
* Update docs/client/forkchoice.md
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
* add a very basic validation
* python syntax fixes and safe target min score as 2/3rd ceiling
* improve vote construction
* bring the vote construction back to validator
* slight formating, small typo fix and renaming
* lint
* Update docs/client/forkchoice.md
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
* Update docs/client/validator.md
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
* Update docs/client/forkchoice.md
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
* Update docs/client/forkchoice.md
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
* Update docs/client/validator.md
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
* fix store
---------
Co-authored-by: Unnawut Leepaisalsuwanna <921194+unnawut@users.noreply.github.com>
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>1 parent d0033cd commit 9231f97
4 files changed
Lines changed: 457 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | 146 | | |
149 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
0 commit comments