Commit Graph

4819 Commits

Author SHA1 Message Date
Michael Sproul
c2b7ff7422 Re-clarify proposer slashing check
Fixes a typo from #1871
2020-06-04 16:16:37 +10:00
Danny Ryan
7f34df94e5 Merge pull request #1871 from michaelsproul/proposer-slashing-clarity
Clarify proposer slashing gossip conditions
2020-06-03 21:04:47 -06:00
Michael Sproul
376c836190 Clarify proposer slashing gossip conditions 2020-06-04 12:51:17 +10:00
Hsiao-Wei Wang
eb21648146 Merge pull request #1858 from ethereum/hwwhww/get_start_shard
`get_start_shard` proposal
2020-06-04 00:46:12 +08:00
Hsiao-Wei Wang
a685be3bbe PR feedback from Danny
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2020-06-04 00:42:08 +08:00
Hsiao-Wei Wang
68e934bf15 Add get_start_shard unittests and update minimal config
1. Add unittests for testing `get_start_shard` with better granularity
2. Change `INITIAL_ACTIVE_SHARDS` from `4` to `2` for tight crosslinking
2020-06-03 23:08:38 +08:00
Danny Ryan
8ad2e936dd Merge pull request #1869 from ethereum/bump-v0121
bump VERSION.txt to 0.12.1
2020-06-02 17:30:20 -06:00
Danny Ryan
314dea97a5 bump VERSION.txt to 0.12.1 2020-06-02 17:26:26 -06:00
Danny Ryan
cc5116bf33 Merge pull request #1837 from status-im/ssz-string
Use SSZ types in p2p spec
2020-06-02 16:35:31 -06:00
Danny Ryan
09b387bdc9 Merge pull request #1862 from terencechain/patch-100
Tidying up `shard_state_transition`
2020-06-02 14:19:31 -06:00
Diederik Loerakker
e814d52ee5 Merge pull request #1866 from ethereum/tunable-genesis
Tunable genesis
2020-06-02 22:19:13 +02:00
Diederik Loerakker
1f470b3054 Merge pull request #1867 from ethereum/p2p-genesis-root
clarify genesis finalized checkpoint root in p2p spec
2020-06-02 22:13:02 +02:00
Danny Ryan
cf7b9993b5 clarify head_root is for a BeaconBlock
Co-authored-by: Diederik Loerakker <proto@protolambda.com>
2020-06-02 13:51:43 -06:00
Danny Ryan
06dfff022b add comment about default of 0x00 for genesis finalized checkpoint in p2p spec 2020-06-02 11:22:09 -06:00
Danny Ryan
671fae6efe change note about genesis delay in p2p spec to match new GENESIS_DELAY config value; fix tests 2020-06-02 11:09:42 -06:00
Raw Pong Ghmoa
d5ed78e974 reflect changes in minimal.yaml 2020-06-02 10:55:35 -06:00
Raw Pong Ghmoa
b3f2d81ad5 reflect changes in mainnet.yaml 2020-06-02 10:55:25 -06:00
Raw Pong Ghmoa
34412130c5 phase0: enable a tunable genesis time 2020-06-02 10:55:13 -06:00
terence tsao
24427947b1 Moved transition_digest to last 2020-06-02 08:09:43 -07:00
Danny Ryan
bdf9f0226d Merge pull request #1864 from paulhauner/patch-21
Reword fork choice comment
2020-06-02 07:22:18 -06:00
Paul Hauner
2a125e8497 Update fork-choice.md 2020-06-02 17:22:33 +10:00
Paul Hauner
c6aac16506 Reword fork choice comment 2020-06-02 17:16:25 +10:00
terence tsao
2a218520a1 Tidying up shard_state_transition 2020-06-01 14:31:45 -07:00
Hsiao-Wei Wang
5f10ac13bf PR feedback from Terence and Danny: refactor get_committee_count_delta 2020-06-01 23:22:59 +08:00
Hsiao-Wei Wang
30f72dd696 Fix get_shard and compute_shard_from_committee_index calls 2020-06-01 23:15:16 +08:00
Hsiao-Wei Wang
9567c238d4 Merge branch 'dev' into hwwhww/get_start_shard 2020-06-01 18:17:58 +08:00
Hsiao-Wei Wang
92db6da508 Apply suggestions from Terence
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2020-06-01 17:56:22 +08:00
Hsiao-Wei Wang
09d8636e7e Merge pull request #1855 from ethereum/hwwhww/phase1_refactor_part2
Some phase1 refactoring - part2
2020-06-01 17:54:35 +08:00
Hsiao-Wei Wang
31127b7024 Merge branch 'dev' into hwwhww/phase1_refactor_part2 2020-06-01 17:50:49 +08:00
Hsiao-Wei Wang
6317bd68aa PR feedback from Danny
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2020-06-01 17:47:47 +08:00
Hsiao-Wei Wang
8e5db1b49f Merge pull request #1856 from ethereum/hwwhww/verify_empty_shard_transition
Rework `Shard transition processing`
2020-06-01 17:47:00 +08:00
Hsiao-Wei Wang
8f570b461d Merge pull request #1854 from ethereum/hwwhww/phase1_refactor
Some phase1 refactoring
2020-06-01 17:46:16 +08:00
Danny Ryan
82f9f3e1cd Merge pull request #1859 from ethereum/ralexstokes-patch-1
Update fork choice spec comment for clarity
2020-05-31 14:13:58 -06:00
Jacek Sieka
33e115f8c6 Clean up remaining [] List syntax
..and use List[byte, 256] for error message
2020-05-30 20:59:12 +02:00
Alex Stokes
437b2ebb90 Update fork choice spec comment for clarity
I think this change more clearly specifies the intended behavior. Given the terseness of the spec's code representation, I think we should aim for as much clarity as possible.
2020-05-29 18:16:06 -07:00
Hsiao-Wei Wang
327deb40b2 Adjust function blocks 2020-05-30 03:14:51 +08:00
Hsiao-Wei Wang
cceeab2657 Combine process_crosslinks and verify_empty_shard_transition into process_shard_transitions 2020-05-30 03:13:20 +08:00
Hsiao-Wei Wang
9b9507c138 Merge branch 'dev' into hwwhww/phase1_refactor_part2 2020-05-30 03:11:28 +08:00
Hsiao-Wei Wang
f70224b84e Extract compute_committee_source_epoch 2020-05-30 03:09:42 +08:00
Hsiao-Wei Wang
2dc041807a Implement get_start_shard 2020-05-30 01:26:00 +08:00
Hsiao-Wei Wang
b16e6d7a86 PR feedback from Danny
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2020-05-29 12:58:19 +08:00
Hsiao-Wei Wang
bd9f983eea Minor fix 2020-05-29 02:20:38 +08:00
Danny Ryan
4cbe51b958 Merge pull request #1853 from ethereum/hwwhww/shard_block
Add `shard` field to `ShardBlock`
2020-05-28 12:04:04 -06:00
Hsiao-Wei Wang
8ae7f5b6fa Refactor is_valid_indexed_attestation: extract verify_attestation_custody 2020-05-29 01:24:17 +08:00
Hsiao-Wei Wang
7509ecb742 Add comments, minor refactoring 2020-05-29 00:13:08 +08:00
Hsiao-Wei Wang
19262888e4 Rename verify_shard_transition_false_positives to verify_empty_shard_transition 2020-05-28 21:55:49 +08:00
Hsiao-Wei Wang
8c9bbc48d8 Rework is_shard_attestation
Change it to `is_on_time_attestation` so that it could be reused in
`validate_attestation`.
2020-05-28 21:49:36 +08:00
Hsiao-Wei Wang
ca48963032 Rename head_shard_root to shard_head_root 2020-05-28 21:38:11 +08:00
Hsiao-Wei Wang
c437578280 Add shard field to ShardBlock 2020-05-28 21:32:27 +08:00
Danny Ryan
05b1d913cb Merge pull request #1847 from ethereum/networking-misc-fixes
Update link so gossipsub encodings match the correct section
2020-05-26 14:29:04 -06:00