Commit Graph

7347 Commits

Author SHA1 Message Date
Danny Ryan b517092770
Merge pull request #2812 from tersec/intervals_per_slot
use INTERVALS_PER_SLOT in sync committee specs
2022-01-25 15:18:53 -07:00
Danny Ryan d5e4828aec
Merge pull request #2770 from sigp/opt-sync-2
Optimistic Sync
2022-01-25 10:26:29 -07:00
Etan Kissling 0e9460b8dd
Ensure light client `optimistic_header` to be at head
When a light client updates its `finalized_header` using a forced update
because of the timeout, and the new header was not signed by enough sync
committee participants to pass `get_safety_threshold(store)`, it may
occur that `store.finalized_header.slot > store.optimistic_header.slot`.
This patch ensures that the `optimistic_header` is updated to the latest
`finalized_header` if that happens, so that it always indicates the
latest known and accepted head.
2022-01-25 10:09:10 +01:00
Dustin Brody 182e4496c3
use INTERVALS_PER_SLOT in sync committee specs 2022-01-21 19:01:56 +00:00
Paul Hauner b50bea86a0
Merge pull request #2 from ethereum/build-opt-sync
build opimistic sync file
2022-01-21 09:50:02 +11:00
Danny Ryan a5b3c91f25
build opimistic sync file and fix a minor lint/typing issue 2022-01-20 09:25:02 -07:00
Danny Ryan 2232d76735
Merge pull request #2808 from ethereum/receipts-root
receipt_root -> receipts_root
2022-01-20 08:37:57 -07:00
Alex Stokes 02b32100ed
Merge pull request #2803 from ralexstokes/clean-up-linter
add `pylint` to catch unused args
2022-01-18 09:29:54 -06:00
Danny Ryan f77fc055f8
Update specs/bellatrix/beacon-chain.md
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2022-01-18 07:19:00 -07:00
Paul Hauner 50b236e5eb
Address TERMINAL_BLOCK_HASH 2022-01-18 14:55:10 +11:00
Paul Hauner be4319a048
Rename `justified_is_verified` 2022-01-18 12:31:36 +11:00
Paul Hauner 24947be7c3
Rename should_optimistically_import... 2022-01-18 12:29:20 +11:00
Paul Hauner bfe4172584
Define `current_slot` 2022-01-18 12:26:30 +11:00
Paul Hauner 0ec61bd195
Clarify liveness 2022-01-18 12:21:34 +11:00
Paul Hauner f4a125c89a
Remove reorg section 2022-01-18 11:36:36 +11:00
Paul Hauner 4ccd38b54e
Tidy tracking note 2022-01-18 11:32:47 +11:00
Paul Hauner b50bee16f6
Rename Store -> OptimisticStore 2022-01-18 11:30:28 +11:00
Paul Hauner 52caba6eae
Add section about backwards compat 2022-01-18 11:28:08 +11:00
Paul Hauner 092f3e0b16
Propose -> Propagate 2022-01-18 11:22:07 +11:00
Paul Hauner 6225236a52
Specify about EL/CL scoring rules 2022-01-18 11:20:52 +11:00
Paul Hauner b1ec9bcfbc
Update gossip conditions 2022-01-18 11:12:55 +11:00
Paul Hauner 15ef2f30d2
Apply suggestions from @djrtwo review
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2022-01-18 09:30:01 +11:00
Danny Ryan 671c4f0e3a
receipt_root -> receipts_root 2022-01-17 13:42:10 -07:00
Etan Kissling 8319d07084
Consistently use `compute_sync_committee_period`
There were a couple instances where a division was used on an epoch
to derive the corresponding sync committee period instead of calling the
`compute_sync_committee_period` function.
These instances were changed to also use the function.
2022-01-17 17:38:24 +01:00
Hsiao-Wei Wang e9c0bbfa86
Merge pull request #2804 from etan-status/doctoc-custodygame
`doctoc` on `custody_game` specs
2022-01-17 21:42:28 +08:00
Etan Kissling fd89b72c6b
`doctoc` on `custody_game` specs
This updates the TOC in `custody_game/beacon-chain.md` using
`make doctoc specs`.
2022-01-17 12:56:51 +01:00
Alex Stokes 10603b71c0
indicate unused argument in utility function 2022-01-13 11:39:37 -08:00
Alex Stokes 2b45496fe4
clean up unused argument from `phase0` 2022-01-13 11:39:36 -08:00
Alex Stokes fd27d93898
add `pylint` to catch unused args 2022-01-13 11:27:11 -08:00
Alex Stokes 50a63c4135
Merge pull request #2790 from asanso/patch-5
Add 3 new invalid test cases
2022-01-13 12:56:38 -06:00
Hsiao-Wei Wang 67b18334b6
Merge pull request #2799 from terencechain/patch-130
Remove client settings link
2022-01-13 21:08:19 +08:00
Hsiao-Wei Wang 16c350ebcd
Merge pull request #2796 from etan-status/lc-aggregate
Rename `sync_committee_aggregate` > `sync_aggregate`
2022-01-13 21:07:50 +08:00
Antonio Sanso 7255faf41b
Update ssz_container.py 2022-01-13 13:40:48 +01:00
Paul Hauner 856eea4986
Describe all fields in store 2022-01-13 07:23:12 +11:00
Paul Hauner 8522f27b8e
Modify "when" section 2022-01-13 07:17:57 +11:00
Paul Hauner b7c332f0ee
Tidy 2022-01-13 07:17:43 +11:00
Paul Hauner 6af3d4cbfc
Fix comment indents 2022-01-13 07:13:10 +11:00
Paul Hauner 18c32e0a5e
Fix indents 2022-01-13 07:00:28 +11:00
Paul Hauner 6d72038f12
Fix spelling mistakes 2022-01-13 06:56:38 +11:00
Paul Hauner 0c2e416a6e
Run doctoc 2022-01-13 06:56:32 +11:00
Paul Hauner 6d73b0a4ac
Add poisoning prevention 2022-01-13 06:52:07 +11:00
Paul Hauner 90fb7f6871
Add rationale 2022-01-12 19:04:43 +11:00
Paul Hauner ad7e92433a
Update links to bellatrix 2022-01-12 16:49:08 +11:00
Paul Hauner de1a6caa5d
Add comment about INVALID block 2022-01-12 16:43:36 +11:00
Paul Hauner 0ae80d9382
Fix typo 2022-01-12 16:41:24 +11:00
Paul Hauner 60eab25774
Add section about merge block 2022-01-12 16:39:43 +11:00
Paul Hauner e97335a09a
Merge branch 'dev' into opt-sync-2 2022-01-12 16:22:05 +11:00
Paul Hauner 1228e01883
Update p2p-networking 2022-01-12 16:18:53 +11:00
Paul Hauner 55d92cee34
Fix typo 2022-01-12 16:10:59 +11:00
Paul Hauner 736f3cec3f
Remove `justified_block` 2022-01-12 16:09:24 +11:00