Commit Graph

7542 Commits

Author SHA1 Message Date
Danny Ryan d513f5cf17
fix lint 2022-02-24 14:26:15 -07:00
Danny Ryan fb90451f7f
Merge pull request #2837 from ethereum/fix-build_spec
Ensure that the SSZ object classes are ordered
2022-02-24 14:17:22 -07:00
Alex Stokes 0b89c7fb18
Update specs/capella/beacon-chain.md 2022-02-24 12:43:57 -07:00
Hsiao-Wei Wang eef2dbb2b6 Ensure that the SSZ classes are ordered 2022-02-25 01:22:02 +08:00
Danny Ryan e49f73c9a4
fix tx type 2022-02-23 15:15:24 -07:00
Danny Ryan 2026103bb9
Merge branch 'dev' into withdrawals-push 2022-02-23 15:08:29 -07:00
Danny Ryan e80a142d83
modified withdrawals for push 2022-02-23 15:05:55 -07:00
Danny Ryan f4967bc47e
Merge pull request #2835 from mkalinin/random-to-prevrandao
Bellatrix: random -> prev_randao
2022-02-22 11:47:24 -07:00
Mikhail Kalinin 1280fe2a02 Bellatrix: random -> prev_randao 2022-02-22 17:16:33 +06:00
Jacek Sieka 9fb2dd16c1
Ignore attestations voting for the wrong finalized checkpoint
When nodes are syncing but have not yet reached the canonical `head`,
they cannot determine whether nodes they are connected to serve a valid
history or are making bogus claims in their `Status` advertisement.

Thus, the best course of action that a client can take is to vote for
its "current" best synced head, regardless of whether it's connected to
peers that claim to have other heads or not.

However, in the p2p spec, we penalize such peers with a `REJECT` - this
should be an `IGNORE` instead because this vote is correct per the spec,
albeit "late" according to the validating clients' view of the chain.
2022-02-11 17:12:13 +01:00
Hsiao-Wei Wang 6d11d627f8 Refactoring: add `is_finality_update` helper 2022-02-09 18:13:51 -07:00
Danny Ryan 8ae93b8265
Merge pull request #2826 from ethereum/get_sync_aggregate
Minor refactoring for test_sync_protocol.py
2022-02-09 10:19:10 -07:00
Danny Ryan 5a09b5f8a8
Merge pull request #2814 from etan-status/lc-opt-fin
Ensure light client `optimistic_header` to be at head
2022-02-09 10:06:57 -07:00
Danny Ryan 7879ed58c6
Merge pull request #2827 from terencechain/patch-131
Fix typo justified
2022-02-07 07:16:28 -07:00
terence tsao 7c492ce4ce
Fix typo 2022-02-06 13:32:21 -08:00
Hsiao-Wei Wang 3d7f307020 Refactor test_sync_protocol.py a bit 2022-02-04 17:46:37 -08:00
Danny Ryan 824ff970f5
Merge pull request #2818 from etan-status/err-unavailable
Update reserved libp2p error documentation
2022-02-03 09:00:34 -07:00
Hsiao-Wei Wang f2fd673a66
Merge pull request #2807 from etan-status/compute-sync-period
Consistently use `compute_sync_committee_period`
2022-02-01 16:05:58 -08:00
Danny Ryan adf20c5663
Merge pull request #2822 from ethereum/bump-version
bump version
2022-01-28 06:48:09 -07:00
Danny Ryan 67fcbf22ec
bump version 2022-01-28 06:44:04 -07:00
Danny Ryan 4f73e3af9d
Merge pull request #2820 from sigp/opt-statuses
Add more statuses to opt sync spec
2022-01-28 06:33:00 -07:00
Danny Ryan ccf6f35210
Merge pull request #2821 from ralexstokes/add-bellatrix-random-tests
add randomized tests for bellatrix
2022-01-28 06:30:04 -07:00
Alex Stokes 129d9e28b4
add randomized tests for bellatrix 2022-01-27 19:41:09 -08:00
Etan Kissling 20c8d0d641
Update reserved libp2p error documentation
The spec reserves the libp2p error code range `[3, 127]` for future use
but actually defines error code `3` as `ResourceUnavailable`. This patch
updates the reserved range to `[4, 127]`.
2022-01-28 00:33:38 +01:00
Paul Hauner cbbe6e744a
Add aliases 2022-01-28 09:45:08 +11:00
Paul Hauner 020d72c756
Remove link fragment 2022-01-28 08:43:18 +11:00
Danny Ryan 420ec14713
Merge pull request #2817 from mkalinin/rename-execute-payload
Bellatrix: Rename execute_payload to notify_new_payload
2022-01-27 06:40:17 -07:00
Mikhail Kalinin eb4497fae7 Bellatrix: Rename execute_payload to notify_new_payload 2022-01-27 15:24:53 +06:00
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