Commit Graph

3617 Commits

Author SHA1 Message Date
Danny Ryan d3d8b36365
Merge branch 'dev' into v06x-to-dev 2019-05-27 11:09:52 -06:00
protolambda d5eab257d0
improve impl, box less used integer types, use uint64 as default 2019-05-27 18:01:46 +02:00
Danny Ryan 405b34225f
D be list instead of set in validator eth1 data counting 2019-05-27 09:37:30 -06:00
Danny Ryan 31c02ebcab
Merge pull request #1116 from ethereum/hwwhww/phase1_withdrawable
Clean up `process_penalties_and_exits` and fix ToC
2019-05-27 09:33:43 -06:00
Danny Ryan 7327f12296
Merge pull request #1126 from michaelsproul/sort-attester-slashings
Sort attester slashing indices to avoid arbitrary ordering
2019-05-27 09:14:13 -06:00
Danny Ryan d54b6848de
Merge pull request #1114 from ethereum/finish-state-tests-intro
Finish state tests intro
2019-05-27 08:46:02 -06:00
Danny Ryan 8d420c0780
fix prestate for process registry updates 2019-05-27 08:38:37 -06:00
Vitalik Buterin e14f789779 Presentation edits 2019-05-27 08:07:00 -04:00
Hsiao-Wei Wang 0ec03db0fb
test 2019-05-27 18:48:40 +08:00
Hsiao-Wei Wang 3e6f7a2e96
kick 2019-05-27 18:42:09 +08:00
Hsiao-Wei Wang 11196ea87d
sequentially execute the jobs 2019-05-27 18:33:35 +08:00
Hsiao-Wei Wang 30bb8986c4
Bump to latest deposit contract dev branch (fad5c32) 2019-05-27 18:25:31 +08:00
Hsiao-Wei Wang 05dc4b576f
deposit contract requires `eth2spec.phase0.spec.DepositData` 2019-05-27 18:15:33 +08:00
Hsiao-Wei Wang 98cabb665a
Add `save_default_cached_venv` 2019-05-27 18:11:15 +08:00
Hsiao-Wei Wang 18cb67425a
Add `deposit_contract/requirements-testing.txt` to checksum 2019-05-27 18:05:21 +08:00
Hsiao-Wei Wang bff945a298
Add `restore_default_cached_venv` 2019-05-27 18:03:34 +08:00
Hsiao-Wei Wang b05444a92c
Update Makefile and CI config
1. Add `install_deposit_contract_test` command
2. Add `test_deposit_contract` command
2019-05-27 15:59:01 +08:00
Michael Sproul a82a6f9a1a
Sort attester slashing indices to avoid arbitrary ordering
Closes #1125
2019-05-27 17:36:20 +10:00
Hsiao-Wei Wang 09f7114b63
copied from deposit contract 2019-05-27 13:15:10 +08:00
Luke Anderson fa177e0355
Bumped API version number to 0.2.0 2019-05-27 13:01:36 +10:00
Luke Anderson af798a3065
Minor updates.
- Fixed spelling (and made American English)
 - Clarified the schema for the new poc_bit field, and description.
2019-05-27 11:21:23 +10:00
Carl Beekhuizen f7f069d6b5
Bug fixes and cleanup of 2_shard-data-chains 2019-05-26 19:41:36 +02:00
Justin cdfb886c22
Avoid divisions by zero
Possible fix to avoid four cases of divisions by zero:

* `return state.validator_registry[index].effective_balance // adjusted_quotient // BASE_REWARDS_PER_EPOCH`
* `rewards[index] += get_base_reward(state, index) * attesting_balance // total_balance`
* `validator.effective_balance * min(total_penalties * 3, total_balance) // total_balance`
* `rewards[index] += base_reward * attesting_balance // committee_balance`

See also #1107.
2019-05-26 18:42:37 +03:00
Carl Beekhuizen a7dbbafc92
Integrates shard-data-chains 2019-05-26 14:14:48 +02:00
vbuterin 3b4d9b7a85
Class-ified the type definitions 2019-05-25 16:14:52 -04:00
Vitalik Buterin 5b6a98b107 Some updates 2019-05-25 14:06:42 -04:00
Carl Beekhuizen f6ce817f24
merge dev->dankrad-patch-7 2019-05-25 15:57:28 +02:00
Carl Beekhuizen c4b9c6372c
Merge in state_transition.py 2019-05-25 15:54:14 +02:00
Danny Ryan dd091724d0
Merge pull request #1120 from ethereum/phase1-candidate-bug
a number of minor fixes in phase 1
2019-05-25 07:18:53 -06:00
Carl Beekhuizen 3bfe81ed7b
Merge branch 'dev' into dankrad-patch-7
* dev:
  Fix typo in libp2p-standardization
  update version used in test generators to get SHA-256 hash
2019-05-25 15:13:45 +02:00
protolambda 81cb4a23b3
update some common usage of SSZ types, as a start 2019-05-25 00:10:06 +02:00
protolambda ed4416ba34
update SSZ implementation 2019-05-25 00:05:03 +02:00
Luke Anderson edf0b9d05f
Addressed some of @djrtwo's suggestions.
- Rewording of specification goal paragraph
 - Clarify get duties description regarding chain reorgs.
 - Add epoch parameter to get duties, and new error 406
 - Block publishing action is clarified around validation, with a new status code 202
 - The validator pubkey and PoC bit are passed to produce attestation
 - Attestation publishing action is clarified around validation, new status code 202
 - Rewording of genesis_time, 'block' -> 'slot'
 - Update Crosslink to latest spec
 - Added missing signature field to IndexedAttestation
2019-05-25 07:59:35 +10:00
Justin d805fb5084
Simplify deposits 2019-05-25 00:35:17 +03:00
Danny Ryan c3de576c8f
Merge pull request #1121 from ralexstokes/v06x
update version used in test generators to get SHA-256 hash
2019-05-24 13:07:38 -06:00
Alex Stokes cff9c7fe67
update version used in test generators to get SHA-256 hash 2019-05-24 11:05:07 -07:00
Danny Ryan 28b76bcd4c
a number of minor fixes in phsae 1 2019-05-24 11:59:22 -06:00
Danny Ryan b0a3b436e3
Merge pull request #1117 from ralexstokes/update-py-ecc-version
update version used in test generators to get SHA-256 hash
2019-05-24 11:33:23 -06:00
Danny Ryan 3539e608f7
Merge pull request #1118 from AgeManning/typo-fixes
Fix typo in libp2p-standardization
2019-05-24 10:46:24 -06:00
protolambda e9a01a276d
epoch processing formatting 2019-05-24 18:39:12 +02:00
protolambda b12031b48d
not signed by default 2019-05-24 18:38:51 +02:00
Diederik Loerakker b6b5787931
Update specs/test_formats/epoch_processing/README.md
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-05-24 12:24:42 -04:00
Carl Beekhuizen ac9564c2b7
Adds Insert-into-label functionality 2019-05-24 16:51:21 +02:00
protolambda 321baf79f4
fix missing imports from earlier code suggestion 2019-05-24 15:03:03 +02:00
protolambda 73f0f74fb0
run process yield-from test pattern 2019-05-24 14:58:06 +02:00
Carl Beekhuizen d41bc67ec8
merge dev -> dankrad-patch-7 2019-05-24 14:56:10 +02:00
Diederik Loerakker f2e3cd01aa
Update test_libs/pyspec/eth2spec/test/epoch_processing/test_process_crosslinks.py
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
2019-05-24 08:34:14 -04:00
Diederik Loerakker 4690bcf682
Update specs/test_formats/operations/README.md
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
2019-05-24 08:33:06 -04:00
Diederik Loerakker f52b2282b3
Update specs/test_formats/operations/README.md
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
2019-05-24 08:32:54 -04:00
Age Manning 2cd188358b
Fix typo in libp2p-standardization 2019-05-24 21:24:35 +10:00