Carl Beekhuizen
80eb721895
Domains are bytes
2019-12-17 12:20:34 +02:00
Diederik Loerakker
88e954a9c7
Merge pull request #1522 from ethereum/master
...
backport v093 to dev
2019-12-13 18:56:31 +01:00
Martin Lundfall
12ff64ea1a
Update ToC of specs to consistent use of doctoc
2019-12-10 18:29:40 +01:00
Diederik Loerakker
da17f4b3a8
Merge pull request #1505 from ethereum/v09x
...
backport V09x
2019-12-05 22:15:47 +01:00
protolambda
103a66b2af
remove signing_root: see issue #1487
2019-12-03 21:10:19 +01:00
Danny Ryan
23abc11093
handle v0.9.2-dev conflict
2019-11-21 15:18:17 -07:00
protolambda
2c32274870
rename BytesN to ByteVector, rename Bytes to ByteList
2019-11-15 16:56:52 +01:00
protolambda
c061abdd75
Avoid Hash <> hash() type and func confusion, intro Root and change to non-roots to Bytes32
2019-11-12 21:29:58 +01:00
Hsiao-Wei Wang
13c3d9c6e9
Update ToCs
2019-10-23 12:10:43 +08:00
Danny Ryan
437a65d3e1
cleanup wrt Justin's comments
2019-10-17 17:47:51 +09:00
Danny Ryan
c239ce0b5e
crosslink committee -> beacon committee
2019-10-17 10:45:07 +09:00
Danny Ryan
c392db3b9b
fix max epochs var
2019-10-12 14:44:53 +09:00
Justin Drake
e7db58cb7e
Rename ACTIVATION_EXIT_DELAY to MAX_SEED_LOOKAHEAD for phase 1
2019-09-23 12:48:41 -06:00
Danny Ryan
834b811222
fix custody_subchunkify return type
2019-09-16 13:26:27 -06:00
Gregory Markou
794a2407a1
Update specs/core/1_custody-game.md
...
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
2019-09-16 11:19:51 -04:00
Gregory Markou
6d9dd04b50
Update 1_custody-game.md
2019-09-15 21:03:50 -04:00
Gregory Markou
d66e6ca0b8
Update 1_custody-game.md
...
Fix table
2019-09-15 17:12:36 -04:00
Hsiao-Wei Wang
d84c902bb1
Merge branch 'dev' into v082_backport
2019-08-12 01:47:24 +08:00
dankrad
b345dc0f5f
Legendre custody construction ( #1305 )
...
* Stab at Legendre custody construction + some tests
* Fix some problems and fix function puller to remove phase0 only lines in phase1
* Pass the linter
* Add headings
* Fix domain for BLS stub
* Change Jacobi to Legendre
* n -> q to clarify notation
* Headings
* Another missing heading
* Custody subchunks via padding
* Fix max_reveal_lateness stuff
* Better names for reveal period functions
* Better parametrization of max_reveal_lateness computation and tests for custody reveal processing
* Fix linter
* Allow challenging for one period after the custody reveal, shorter periods for minimal tests
* Fix lint
* Fix linter error
2019-08-11 13:05:17 -04:00
Hsiao-Wei Wang
f336e7ffb3
Rename `is_empty` to `is_zero`
2019-07-25 17:32:27 +08:00
Hsiao-Wei Wang
733653f169
Update some missing type hinting of phase 1
2019-07-04 20:52:58 +08:00
Danny Ryan
af5719031c
Merge branch 'dev' into fix-bls-domain-type
2019-06-30 20:28:18 -05:00
Carl Beekhuizen
41897e779a
validate_indexed_attestation -> is_valid_indexed_attestation`
2019-07-01 00:10:28 +02:00
Carl Beekhuizen
6e5f43c033
merge in `dev` and resolve conflicts
2019-06-30 23:37:56 +02:00
Carl Beekhuizen
918192cdab
`compute_slot_epoch`->`compute_epoch_of_slot`
2019-06-30 23:35:07 +02:00
Hsiao-Wei Wang
67b0b4ad33
Update other spec files
2019-07-01 04:57:42 +08:00
protolambda
e53063c08d
type BLS domain and domain type
2019-06-30 22:12:49 +02:00
Carl Beekhuizen
361732f409
merge in dev and resolve conflicts
2019-06-30 21:54:30 +02:00
Carl Beekhuizen
e0a0f6e156
Makes markdown comply with linter
2019-06-30 21:25:58 +02:00
Carl Beekhuizen
0fd1d38417
`Misc` function rename
2019-06-30 20:58:02 +02:00
Danny Ryan
d1bc2f03ac
remove 'int' types from spec typehints. replace with uint64
2019-06-30 13:00:22 -05:00
Danny Ryan
6d5e4da3e0
PR feedback
2019-06-30 12:42:24 -05:00
Justin Drake
0be2b8e620
Cleanup
2019-06-30 16:10:22 +01:00
Justin Drake
e8532ced79
WIP
2019-06-30 10:56:14 +01:00
Justin Drake
369c457d76
WIP2
2019-06-30 10:11:23 +01:00
Justin Drake
d0acd81157
WIP
2019-06-30 10:02:18 +01:00
protolambda
5f0e58364f
resolved merge conflicts, take attesters seq->set change from dev, take bits rework from bitlistvector PR
2019-06-28 18:17:13 +02:00
Danny Ryan
dcb0244a4f
get_attesting_indices set instead of sorted ( #1225 )
2019-06-28 16:19:59 +01:00
vbuterin
c764202a57
Slashing penalty calculation change ( #1217 )
...
If the exit queue is very long, then a validator may take many months to exit. With the code as currently written, however, self-slashing is a potentially lucrative route to get one's money out faster, because one can exit in 36 days.
This PR changes it so that slashing can only extend your withdrawal time, not contract it. Also, instead of the slashed balances used to calculate one's slashing penalty being those in `[withdrawal - 54 days ... withdrawal - 18 days]`, we now run the penalization algorithm once every 36 days that a validator is slashed but not withdrawn, so that it covers the 36-day period where the validator was actually slashed. It also moves the minimum slashing penalty to the `slash_validator` function so that it is only applied once.
We also simplify the `slashed_balances` logic to be per-epoch.
2019-06-28 14:35:26 +01:00
Justin Drake
196ac42025
Cleanup naming
2019-06-28 12:23:22 +01:00
Dankrad Feist
93ce168862
More linting fixes
2019-06-27 16:47:48 +01:00
Dankrad Feist
80c680e614
Phase 1 to Bitvector/Bitlist
2019-06-27 12:41:22 +01:00
Carl Beekhuizen
f29b693a9c
Merge dev -> early_spec_test
2019-06-25 17:11:04 +02:00
protolambda
054a157953
get rid of TypingList, add MutableSequence
2019-06-25 02:58:10 +02:00
Carl Beekhuizen
a5b22e13b8
Resolves make masker sign mask
2019-06-22 16:56:16 +02:00
protolambda
3d8466fd6e
make Bit check not use "is", and remove duplicate line
2019-06-20 23:04:19 +02:00
protolambda
5048b9e87a
temporary fix for phase-1 spec typing
2019-06-20 20:20:45 +02:00
Hsiao-Wei Wang
9af9bbf42b
Merge branch 'dev' into mypy
2019-06-17 17:51:00 -04:00
Hsiao-Wei Wang
e93ba51ef8
More clean up
2019-06-15 18:25:37 -04:00
Hsiao-Wei Wang
48e8164e28
Add phase1 type hinting checks and fix many bugs
2019-06-12 20:08:19 -04:00