Commit Graph

3141 Commits

Author SHA1 Message Date
protolambda 401dba3230
Merge branch 'bls-setting' into v06x-to-dev 2019-05-28 15:38:08 +02:00
protolambda 6ffd41650b
suggestion from hww, reduce into one bls_setting key 2019-05-28 15:35:00 +02:00
Vitalik Buterin 19601df572 Starting work on partials 2019-05-28 09:30:35 -04:00
Carl Beekhuizen bfa45e06f0
merge dev -> d-p-7 2019-05-28 11:15:17 +02:00
Carl Beekhuizen fd05b6e364
Minor bugfixes 2019-05-28 09:58:51 +02:00
Hsiao-Wei Wang f0ceefc36d
Make `test_libs/pyspec/tests` pass
1. Use `typing_inspect` library to check if it's `typing.List[Any]`. Use it in `is_list_type`.
2. Add `__hash__`, `__eq__`, `__repr__` methods to some classes.
2019-05-28 13:57:42 +08:00
Hsiao-Wei Wang 00ffaf4d71
Fix ssz path 2019-05-28 12:37:41 +08:00
Luke Anderson c32328fdf2
Fixed swagger URL so that the version number isn't specified (defaults to latest). 2019-05-28 10:49:40 +10:00
Luke Anderson 56698602ab
Updated all absolute URLs to the eth2.0-specs repo so that they point to the master branch (instead of dev). 2019-05-28 10:48:41 +10:00
protolambda 5e28adf556
bugfix: don't forget about var-length bytes getting a length mixin 2019-05-28 00:51:27 +02:00
protolambda 9e61cc2ed3
bugfix: typing edge-case: python bool is subclass of int. 2019-05-28 00:45:13 +02:00
protolambda 0e9a047b1d
Merge branch 'dev' into ssz-impl-rework 2019-05-28 00:42:35 +02:00
Danny Ryan 47f3df6d0a
fix deposit test for new index handling 2019-05-27 16:40:00 -06:00
Diederik Loerakker 2a7fcb6ffa
Merge pull request #1132 from ethereum/fix-build-script
fix dev branch build script, missing quotes
2019-05-28 00:09:09 +02:00
protolambda c99fa52d9f
fix dev branch build script, missing quotes 2019-05-27 23:56:17 +02:00
protolambda 54b14b5ac3
update ssz-static generator 2019-05-27 23:41:48 +02:00
protolambda b4c4df6a09
bugfix in sss_types global building in script 2019-05-27 23:41:29 +02:00
protolambda d023d2d20f
lots of bugfixes 2019-05-27 23:40:05 +02:00
protolambda 0f79ed709b
update yaml encoder/decoder and obj randomizer for typed ssz usage 2019-05-27 22:19:18 +02:00
protolambda c68944bd53
separate type (direct) from kinds (alias incl) 2019-05-27 22:18:34 +02:00
protolambda 87b3466eae
update encoder and decoder for reading from parsed data 2019-05-27 21:46:14 +02:00
protolambda d63b553a2d
efficiency bugfix in bytes encoding, improve typing doc + bugfix 2019-05-27 21:45:47 +02:00
protolambda 132d3c976a
fix spec builder 2019-05-27 21:14:59 +02:00
protolambda f3088884b3
Minor adjustments + getting the beacon spec doc ready 2019-05-27 20:29:53 +02:00
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