Commit Graph

4891 Commits

Author SHA1 Message Date
Danny Ryan
2e0950560b PR feedback 2020-06-16 16:03:36 -06:00
Hsiao-Wei Wang
50ac8ebb0c Fix DOMAIN_CUSTODY_BIT_SLASHING 2020-06-15 21:25:40 +08:00
Hsiao-Wei Wang
458d343497 Fix configs and put domain types to the same table 2020-06-15 21:15:11 +08:00
Hsiao-Wei Wang
be607e97f6 Merge branch 'dev' into phase1-validator 2020-06-15 21:09:43 +08:00
Danny Ryan
f62125eaa6 add phase 1 on-time aggregation 2020-06-15 06:54:48 -06:00
Danny Ryan
e955e6f6e1 Merge pull request #1884 from paulhauner/patch-25
Use parent_root for finalized chain check
2020-06-13 16:09:16 -05:00
Danny Ryan
fdb6f15867 unhandled exceptions do not modify forkchoice store 2020-06-13 15:59:04 -05:00
Danny Ryan
df9b5f18a4 Merge pull request #1885 from paulhauner/patch-26
Fork choice: minor formatting change
2020-06-13 15:51:03 -05:00
Danny Ryan
ebbf659d3d Merge pull request #1882 from ethereum/hwwhww/phase1-config
Separate config files by phases + update phase 1 configs
2020-06-13 15:48:56 -05:00
Paul Hauner
7ad1bb508d Ensure parent is checked before store lookup 2020-06-13 16:04:16 +10:00
Hsiao-Wei Wang
aa75fb0b69 Fix MAX_SHARDS and move config files to configs/{network}/{fork} 2020-06-12 00:47:36 +08:00
Danny Ryan
67c9c062e0 Merge pull request #1880 from paulhauner/patch-24
Fork choice: avoid redundant call to get_ancestor
2020-06-11 10:23:27 -05:00
Paul Hauner
a1a75a38fe Tidy, add comment 2020-06-11 11:51:18 +10:00
Hsiao-Wei Wang
85ec791935 Sync with beacon-chain spec 2020-06-11 01:04:14 +08:00
Hsiao-Wei Wang
6502cc1149 Separate config files by phases 2020-06-11 01:04:10 +08:00
Danny Ryan
85b227da78 Merge branch 'dev' into phase1-validator 2020-06-10 11:34:55 -05:00
Danny Ryan
4b8f132957 pr feedback 2020-06-10 11:32:02 -05:00
Danny Ryan
1dc6b55617 rearrange fork choice condition for clarity 2020-06-10 09:40:34 -05:00
Danny Ryan
c3a69bfd9c Merge pull request #1879 from terencechain/patch-101
Update phase1 beacon-chain config table
2020-06-10 08:05:45 -06:00
Hsiao-Wei Wang
479c40450d Friendly lint fix 2020-06-10 18:16:26 +08:00
Paul Hauner
29d968bb2e Use parent_root for finalized chain check 2020-06-10 15:09:40 +10:00
Paul Hauner
378d249487 Avoid redundant call to get_ancestor 2020-06-10 11:02:10 +10:00
terence tsao
0f6efcd50d Update toc 2020-06-09 15:38:40 -07:00
terence tsao
ef11e924fa Update phase1 beacon-chain config table 2020-06-09 13:34:46 -07:00
Danny Ryan
65a739fe41 Merge branch 'dev' into phase1-validator 2020-06-08 15:50:51 -06:00
Hsiao-Wei Wang
f279e30250 Merge pull request #1773 from ethereum/hwwhww/shard_fork_choice
Shard fork choice rule
2020-06-09 00:53:05 +08:00
Hsiao-Wei Wang
2d895e9388 PR feedback from danny 2020-06-09 00:13:27 +08:00
Hsiao-Wei Wang
3b749d72c8 Merge branch 'dev' into hwwhww/shard_fork_choice 2020-06-08 23:57:19 +08:00
Hsiao-Wei Wang
9b3f45dfd0 Merge pull request #1875 from ethereum/hwwhww/shard_fork_choice_part2
Handle `beacon_parent_root` checks
2020-06-08 23:53:31 +08:00
Hsiao-Wei Wang
e03a970eaf PR feedback from danny: simplify verify_shard_block_message params 2020-06-08 23:49:24 +08:00
Danny Ryan
dce82e76bc Merge pull request #1870 from ethereum/hwwhww-patch-1
Use shard_block.slot to get seed for proposer selection
2020-06-08 09:19:23 -06:00
Hsiao-Wei Wang
7e67aaeb35 Rename build_shard_transitions_till_slot to get_shard_transitions 2020-06-08 18:15:14 +08:00
Hsiao-Wei Wang
435505746c PR feedback from Terence: fix get_shard_latest_attesting_balance
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2020-06-08 17:12:46 +08:00
Hsiao-Wei Wang
a4cc189f2b Apply PR feedback from Danny 2020-06-06 05:19:46 +08:00
Danny Ryan
7f680dfca4 fix tests 2020-06-05 14:09:17 -06:00
Hsiao-Wei Wang
a71c0a5ccc Per #1704 discussion, remove on_time_slot: the given beacon_state
should be transitioned.
2020-06-06 02:39:47 +08:00
Hsiao-Wei Wang
2afa315cb3 clean leftover 2020-06-06 02:39:47 +08:00
Hsiao-Wei Wang
2d4788fe7d Fix verify_shard_block_message
Add check for `block.beacon_parent_root` per Terence's suggestion

Update `get_shard_transition`

1. Disable verification: it will be fix in v-guide
2. Use `on_time_slot` to compute offset_slots

Rework tests
2020-06-06 02:39:47 +08:00
Hsiao-Wei Wang
a154d0c22b Fix typo 2020-06-06 02:39:11 +08:00
Hsiao-Wei Wang
6f9c290bfb Add TODO flag of latest message 2020-06-06 02:39:11 +08:00
Hsiao-Wei Wang
ab42eee4c0 Update shard fork choice rule to be able to handle mainnet config 2020-06-06 02:39:11 +08:00
Hsiao-Wei Wang
f8597d2965 Add get_pendings_shard_blocks 2020-06-06 02:39:10 +08:00
Hsiao-Wei Wang
727353c054 Verify shard_block.slot fits the expected offset_slots 2020-06-06 02:39:10 +08:00
Hsiao-Wei Wang
c9a53b8039 WIP test case 2020-06-06 02:39:07 +08:00
Danny Ryan
8a9ccc4f34 clarify attestations as coming from block.body when getting winning roots in validator guide 2020-06-05 12:12:12 -06:00
Danny Ryan
8e5c98ef3c PR feedback 2020-06-05 12:01:53 -06:00
Diederik Loerakker
e6d8a8641d Merge pull request #1876 from ethereum/val-subnet-fix
Fix attestation subnet lookahead
2020-06-05 18:18:09 +02:00
Danny Ryan
7e44456be5 mod compute_subnet_for_attestation to be usable for lookahead 2020-06-05 09:50:49 -06:00
Danny Ryan
52de25048a fix lihth client refs in val guide 2020-06-05 09:35:09 -06:00
Hsiao-Wei Wang
1d0676e19c Merge pull request #1872 from michaelsproul/proposer-slashing-reclarity
Re-clarify proposer slashing check
2020-06-04 18:36:25 +08:00