Danny Ryan
2b8c32a347
Merge pull request #1664 from ethereum/div-zero-total-balance
...
avoid div by zero in extreme balance case
2020-03-19 08:50:09 -06:00
Danny Ryan
0a9b306d60
PR feedback from @hwwhww
2020-03-18 09:55:09 -06:00
Danny Ryan
e6998a61cd
remove IK handshake from noise spec (removed in core libp2p specs)
2020-03-17 10:54:48 -06:00
Danny Ryan
e2ef4365e2
min total balance is now EFFECTIVE_BALANCE_INCREMENT. update testing
2020-03-16 11:19:21 -06:00
Danny Ryan
d299b06a1c
fix custody bit calculation format
2020-03-16 09:52:27 -06:00
Danny Ryan
5315f3db35
clarify proposer_index must be from expected shuffling when validating block gossip
2020-03-13 12:00:34 -06:00
Dankrad Feist
9b7e0ab2be
Fix error in custody bit computation
2020-03-13 17:15:25 +00:00
Danny Ryan
1293320675
Merge branch 'dev' into phase1-tests
2020-03-12 07:12:41 -06:00
Danny Ryan
c894f5ecec
fork choice error note
2020-03-11 16:41:27 -06:00
Danny Ryan
a612df1119
minor typos and clarifications in fork choice
2020-03-11 16:11:42 -06:00
Danny Ryan
47bbffa0d6
'get_checkpoint_store' -> 'get_forkchoice_store' typo
2020-03-11 15:03:14 -06:00
Danny Ryan
81dc71c312
Merge pull request #1652 from ethereum/gossip-topics-with-fork-digest
...
Gossip topics with fork digest
2020-03-11 13:32:25 -06:00
Danny Ryan
4bcdf91e8b
Apply suggestions from code review
...
PR feedback
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2020-03-11 13:24:30 -06:00
Danny Ryan
36e48fba99
enforce must match target to match head to avoid perverse incentive path
2020-03-11 12:51:05 -06:00
Danny Ryan
0881e21dc5
cleanup gossip topic fork digest based on PR feedback
2020-03-11 12:02:31 -06:00
Danny Ryan
baee673124
add note about preparing for subnet backbone for forks
2020-03-10 17:29:39 -06:00
Danny Ryan
e2918c6364
Merge pull request #1626 from ethereum/proposer-index
...
add proposer index to BeaconBlock
2020-03-10 15:10:07 -06:00
Danny Ryan
fccd3ab1ce
clarify hex-encoded bytes string representation for fork digest in gossip topic
...
Co-Authored-By: Diederik Loerakker <proto@protolambda.com>
2020-03-10 15:04:44 -06:00
Danny Ryan
415544bf03
modify gossip topics to use ForkDigest
2020-03-10 14:44:35 -06:00
Danny Ryan
b25ca8e32c
Merge branch 'gossip-topic' of https://github.com/status-im/eth2.0-specs into status-im-gossip-topic
2020-03-10 14:02:44 -06:00
Diederik Loerakker
ab24e7cab7
Merge pull request #1651 from ethereum/revert-forkchoice-header
...
revert fork choice store.blocks to BeaconBlock
2020-03-10 20:25:18 +01:00
Danny Ryan
3b7704a78f
Merge pull request #1649 from ethereum/eth1-voting-period-in-epochs
...
Eth1 voting period in epochs [updated for configs/phase1/tests compat.]
2020-03-10 13:24:03 -06:00
Danny Ryan
1c9ca3c168
Merge pull request #1635 from ethereum/rewards-overflow
...
handle rewards overflow
2020-03-10 13:23:21 -06:00
Danny Ryan
c91eee6bdf
revert fork choice store.blocks to store BeaconBlock
2020-03-10 13:20:57 -06:00
Danny Ryan
0d01299d17
Merge pull request #1648 from sgryphon/feature/clarify-store-signed-block
...
Put back in a requirement to store recent signed blocks
2020-03-10 13:13:33 -06:00
Danny Ryan
1579072e15
add note about total balance overflowing
2020-03-10 13:12:17 -06:00
Danny Ryan
d6eedd95c0
fix wording to be clear it is about serving blocks
...
Co-Authored-By: Diederik Loerakker <proto@protolambda.com>
2020-03-10 13:04:28 -06:00
Danny Ryan
bd5231a975
Merge pull request #1614 from ethereum/eth2-enr
...
add eth2 key/value ENR to phase 0 p2p
2020-03-10 13:02:32 -06:00
Danny Ryan
1818f349ad
add ForkDigest type, clarify how genesis_validators_root is mixed into domains for chain isolation in p2p faq
2020-03-10 11:59:34 -06:00
protolambda
55d436db51
simplify description of voting period time
2020-03-10 18:55:59 +01:00
protolambda
2d7a292d36
eth1 vote period constant in epochs: update configs, phase1, tests
2020-03-10 18:36:53 +01:00
Hsiao-Wei Wang
882b9ee035
Merge branch 'dev' into rewards-overflow
2020-03-11 00:41:17 +08:00
Sly Gryphon
da5720f9d1
Put back in a requirement to store recent signed blocks that was removed when SignedBeaconBlock was introduced (prior to that the signature was in BeaconBlock, which was recorded in Store).
2020-03-10 21:31:03 +10:00
Danny Ryan
92eef0e00b
fix light client sig verification in phase 1
2020-03-09 14:52:30 -06:00
Danny Ryan
6230a22976
Merge pull request #1606 from ethereum/rpc-snappy-lengths
...
RPC chunks with streaming SSZ decoding, snappy frames, and stricter DOS limits where possible.
2020-03-09 11:04:12 -06:00
Danny Ryan
7e04989e29
add genesis_validators_root to beaconstate and utilize in sig domain separation as well as fork separation
2020-03-05 09:21:32 -07:00
Danny Ryan
37b1fed8ff
update eth2 ENR field to use ENRForkID
2020-03-04 14:16:30 -07:00
Danny Ryan
5dae252f56
add eth2 key/value ENR to phase 0 p2p
2020-03-04 12:33:23 -07:00
Danny Ryan
f082aa6ca9
use EFFECTIVE_BALANCE_INCREMENT to normalize reward calculations
2020-03-03 15:34:02 -07:00
Danny Ryan
5e1fb79a8e
Merge pull request #1627 from ethereum/hysteris-fix
...
adjust hysteresis to avoid initial over-deposit incentive
2020-03-03 14:15:24 -07:00
Danny Ryan
33e7680836
make hysteresis calculations configurable
2020-03-03 10:58:47 -07:00
Danny Ryan
2d4ec7d52f
add REWARD_OVERFLOW_INCREMENT to avoid overflow in rewards calculation
2020-03-03 10:23:08 -07:00
Hsiao-Wei Wang
b4c7481b35
Fix the misc table
2020-03-03 01:28:58 +01:00
Danny Ryan
0122081d05
hysteresis to -0.25/+1.25
2020-03-02 15:55:01 -07:00
Jacek Sieka
38323d8186
Add faq
2020-03-01 17:17:29 +01:00
Danny Ryan
186d4258b6
fix shard offsets
2020-02-28 13:20:37 -06:00
protolambda
bb82a051ff
clean up, add invalid input handling
2020-02-27 19:39:34 +00:00
Danny Ryan
4d72dcf3ab
@hwwhww feedback
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2020-02-27 12:00:55 -06:00
Danny Ryan
9718d206a7
fix attester slahsing test
2020-02-26 11:20:19 -06:00
Danny Ryan
721f605a91
Merge branch 'dev' into phase1-tests
2020-02-22 12:10:35 -06:00
Danny Ryan
4c1fc9bffa
work through phase 1 tests
2020-02-22 12:06:31 -06:00
Danny Ryan
97fa3741af
working through test issues
2020-02-22 09:30:33 -06:00
Danny Ryan
ceb6633eb9
working through phase 1 attestation testing
2020-02-22 09:24:14 -06:00
Ben Edgington
934c037a8a
Correct the duration of HISTORICAL_ROOTS_LIMIT
...
The duration of HISTORICAL_ROOTS_LIMIT is:
SECONDS_PER_SLOT * SLOTS_PER_HISTORICAL_ROOT * HISTORICAL_ROOTS_LIMIT
which is
12s * 2^13 * 2^24 = 1.65e12s = 52,262 years
2020-02-22 09:22:52 -06:00
Danny Ryan
3bb8e0d962
cleanup attester slashing conditon code snippet
...
Co-Authored-By: Diederik Loerakker <proto@protolambda.com>
2020-02-22 09:22:52 -06:00
Danny Ryan
f671b86776
add DoS prevention validation conditions to voluntary_exit, proposer_slashing, and attester_slashing gossipsub channels
2020-02-22 09:22:52 -06:00
Danny Ryan
7329cc0933
pr feedback
...
Co-Authored-By: Diederik Loerakker <proto@protolambda.com>
2020-02-22 09:22:51 -06:00
Danny Ryan
3404f1e078
add lower bound condition on block gossip
2020-02-22 09:22:51 -06:00
Danny Ryan
581257e269
reorder gossip conditions to put cheap checks before signature verifications
2020-02-22 09:22:51 -06:00
Danny Ryan
f7181adece
reverse params in get_aggregate_and_proof to match ssz type
2020-02-22 09:22:51 -06:00
Danny Ryan
d2e08c0cdf
subnet validation PR feedback
2020-02-22 09:22:51 -06:00
Danny Ryan
dde69cb8e2
add explicit instrucutions for construction of signed_aggregate_and_proof. add DOMAIN_SELECTION_PROOF and DOMAIN_AGGREGATE_AND_PROOF
2020-02-22 09:22:51 -06:00
Danny Ryan
5ee1f9b545
fix up some p2p validation conditions based on PR feedback
2020-02-22 09:22:50 -06:00
Danny Ryan
fd633d2467
add clarifying note to signedaggregateandproof in vaidator guide and fix tocs
2020-02-22 09:22:50 -06:00
Danny Ryan
343168908c
prevent multiple beacon blocks from same proposer in a given slot
2020-02-22 09:22:50 -06:00
Danny Ryan
8da7a84eb7
create SignedAggregateAndProof to prevent DoS attacks
2020-02-22 09:22:50 -06:00
Danny Ryan
047936eb2d
Add no repeat attestation condition for committee_index_beacon_attestation gossip channel
2020-02-22 09:22:50 -06:00
Danny Ryan
0a849acdce
fix validator guide to show that block slashing is per slot rather than per epoch
2020-02-22 09:22:49 -06:00
Danny Ryan
d414aac933
rework process_attestation and work through tests
2020-02-22 09:22:49 -06:00
Jacek Sieka
61f661b3ec
Update specs/phase0/p2p-interface.md
...
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
2020-02-20 08:23:09 +01:00
Danny Ryan
a02aac43c2
adjust hysteresis to avoid initial over-deposit incentive
2020-02-18 12:36:20 -06:00
Danny Ryan
757f5a31dd
add proposer index and add/modify tests
2020-02-18 11:38:17 -06:00
Anton Nashatyrev
cfcb7b2f01
Measure eth1 voting period in epochs instead of slots
2020-02-18 16:12:43 +03:00
Jacek Sieka
52b45ab9de
Add fork version to topic
...
Gossipsub peers are separate from the ETH2 RPC protocol, and thus cannot
rely on the application-level `Status` negotiation to establish if
they're on the same network.
Segregating gossipsub topics by fork version decouples RPC from gossip
further and allows peers to more easily listen only to the traffic of
the network they're interested in, without further negotiation.
2020-02-17 10:03:32 +01:00
Ben Edgington
8620adcdf1
Correct the duration of HISTORICAL_ROOTS_LIMIT
...
The duration of HISTORICAL_ROOTS_LIMIT is:
SECONDS_PER_SLOT * SLOTS_PER_HISTORICAL_ROOT * HISTORICAL_ROOTS_LIMIT
which is
12s * 2^13 * 2^24 = 1.65e12s = 52,262 years
2020-02-14 14:29:45 +00:00
Danny Ryan
40b4931f01
cleanup attester slashing conditon code snippet
...
Co-Authored-By: Diederik Loerakker <proto@protolambda.com>
2020-02-13 11:17:19 -07:00
Danny Ryan
a7ef70eb9b
add DoS prevention validation conditions to voluntary_exit, proposer_slashing, and attester_slashing gossipsub channels
2020-02-12 15:56:03 -07:00
Danny Ryan
f441fadfff
pr feedback
...
Co-Authored-By: Diederik Loerakker <proto@protolambda.com>
2020-02-12 15:50:22 -07:00
Danny Ryan
f8b72f5057
add lower bound condition on block gossip
2020-02-12 12:07:57 -07:00
Danny Ryan
a9fae27379
Merge pull request #1615 from ethereum/subnet-validations
...
Add subnet validations for DoS resistance
2020-02-12 12:02:28 -07:00
Danny Ryan
714a7de8a2
reorder gossip conditions to put cheap checks before signature verifications
2020-02-12 11:59:00 -07:00
Danny Ryan
90476388fe
reverse params in get_aggregate_and_proof to match ssz type
2020-02-11 15:54:18 -07:00
Danny Ryan
bf8252aeb6
subnet validation PR feedback
2020-02-11 15:46:30 -07:00
Danny Ryan
eec57f29b7
add explicit instrucutions for construction of signed_aggregate_and_proof. add DOMAIN_SELECTION_PROOF and DOMAIN_AGGREGATE_AND_PROOF
2020-02-11 15:45:51 -07:00
Danny Ryan
8d16d428e0
fix up some p2p validation conditions based on PR feedback
2020-02-10 21:35:39 -07:00
Danny Ryan
3d111f7bdd
Merge pull request #1612 from ethereum/v-guide-per-slot-slash
...
[validator guide] beacon block is per-slot slashing
2020-02-10 19:42:01 -07:00
Danny Ryan
8a2a689c80
add clarifying note to signedaggregateandproof in vaidator guide and fix tocs
2020-02-10 19:36:08 -07:00
Danny Ryan
1ca4e3538c
prevent multiple beacon blocks from same proposer in a given slot
2020-02-10 19:28:37 -07:00
Danny Ryan
118a755bbb
create SignedAggregateAndProof to prevent DoS attacks
2020-02-10 19:18:14 -07:00
Danny Ryan
c1a51a9358
Add no repeat attestation condition for committee_index_beacon_attestation gossip channel
2020-02-10 18:53:26 -07:00
Danny Ryan
129aa02cb3
support tests with SLOTS_PER_EPOCH * 256 vals
2020-02-10 17:56:05 -07:00
Danny Ryan
d5f1402d0d
Merge pull request #1604 from status-im/fewer-head-block-roots
...
drop `head_block_root` from BeaconBlocksByRange
2020-02-08 18:24:54 -06:00
Danny Ryan
43cacc3fe9
fix validator guide to show that block slashing is per slot rather than per epoch
2020-02-08 16:58:05 -07:00
Jacek Sieka
6188f350f6
it's just a number
2020-02-07 19:03:33 +01:00
Jacek Sieka
97d931b705
rephrase fork choice requirement
2020-02-07 19:03:09 +01:00
Alex Stokes
b398e42439
another typo in pubsub channel name
2020-02-06 16:41:53 -08:00
Alex Stokes
7aeeb372a7
[validator-guide] typo fix
2020-02-06 16:03:40 -08:00
Danny Ryan
03f53e9928
Merge pull request #1607 from AgeManning/noise-specification
...
Add libp2p-noise specification
2020-02-06 12:05:49 -06:00
Age Manning
9355a6ebca
Noise libp2p specification
2020-02-05 14:33:00 +11:00
protolambda
93249aadda
Proposal to focus on length-encoding SSZ contents, enable streaming of chunk contents, and put stricter DOS limits in place
2020-02-04 13:56:32 +01:00
Jim McDonald
74c75fd6f1
Remove extraneous word
2020-02-02 22:08:11 +00:00
Jacek Sieka
c943b5832e
drop `head_block_root` from BeaconBlocksByRange
...
This change simplifies the protocol and removes a race condition between
block request and response. In the case of honest server, this helps
serve the canonical / fork-chosen chain better while dishonest or broken
servers still need to be handled the same way.
Might as well get started on versions and upgrade it to 2, since the
change is backwards incompatible.
2020-01-31 22:04:48 +01:00
terence tsao
fe58c78da8
Fix table
2020-01-29 14:08:48 -08:00
Herman Junge
51f2974678
Update validator.md
...
Minor edit
2020-01-29 13:51:38 +00:00
vbuterin
52fb929978
Update specs/core/1_beacon-chain.md
2020-01-28 17:32:57 -07:00
vbuterin
2a91b43eaf
Remove shard block chunking
...
Only store a 32 byte root for every shard block
Rationale: originally, I added shard block chunking (store 4 chunks for every shard block instead of one root) to facilitate construction of data availability roots. However, it turns out that there is an easier technique. Set the width of the data availability rectangle's rows to be 1/4 the max size of a shard block, so each block would fill multiple rows. Then, non-full blocks will generally create lots of zero rows. For example if the block bodies are `31415926535` and `897932` with a max size of 24 bytes, the rows might look like this:
```
31415926
53500000
00000000
89793200
00000000
00000000
```
Zero rows would extend rightward to complete zero rows, and when extending downward we can count the number of zero rows, and reduce the number of extra rows that we make, so we only make a new row for every nonzero row in the original data. This way we get only a close-to-optimal ~4-5x blowup in the data even if the data has zero rows in the middle.
2020-01-28 17:31:51 -07:00
protolambda
d9f62f9303
Remerkleable - merkle tree based ssz for better and faster spec
2020-01-25 00:43:43 +01:00
Danny Ryan
67a4d5e659
Merge branch 'dev' into master-copy
2020-01-24 13:49:22 -07:00
Jim McDonald
d4ae00819a
Fix for increased seconds per slot
2020-01-23 13:08:52 -07:00
protolambda
86b699bfd1
Merge branch 'dev' into phase1rebase
2020-01-23 19:24:03 +01:00
Jim McDonald
de1bb7bde1
Update for renamed constant
2020-01-23 09:55:04 -07:00
Hsiao-Wei Wang
a13271af41
Fix BLS API description
2020-01-23 09:52:40 -07:00
Ben Edgington
f8250b6a1a
Correct typo in heading level
2020-01-23 09:51:58 -07:00
Chih Cheng Liang
14cfc66c33
Fix p2p interface indentation
2020-01-23 09:51:38 -07:00
Danny Ryan
eed3f6053d
Merge pull request #1580 from ethereum/fork-choice-fix-1574
...
Fork choice fix issue 1574
2020-01-22 16:56:00 -07:00
Danny Ryan
d672c47aba
Merge pull request #1579 from ethereum/epochs-in-fork-choice
...
Properly handle skip slots in fork choice
2020-01-22 16:55:15 -07:00
Diederik Loerakker
9f5f501e5b
Merge pull request #1586 from ethereum/fix-default-compute-domain
...
fix default value in compute_domain
2020-01-23 00:29:28 +01:00
Jim McDonald
ebac603745
Update for renamed constant
2020-01-22 22:23:36 +00:00
Danny Ryan
fe103394db
Merge pull request #1583 from sigp/kirk-baird-patch-02
...
Update BLS Link
2020-01-22 14:57:36 -07:00
Danny Ryan
b357e43aab
clarifying comment on call to get_ancestor in on_block
2020-01-22 14:31:23 -07:00
Danny Ryan
e821476c07
explicitly use Optiona type for fork_version in compute_domain
...
Co-Authored-By: Carl Beekhuizen <carl@ethereum.org>
2020-01-22 11:38:50 -07:00
Danny Ryan
cf18b040b4
fix default value in compute_domain
2020-01-22 07:24:15 -07:00
Kirk Baird
601701241c
Update link
...
Signed-off-by: Kirk Baird <baird.k@outlook.com>
2020-01-22 11:04:45 +11:00
Danny Ryan
2015433fa1
revert exit queue epoch issue introduced in v0.10.0. add test to catch subtlety
2020-01-20 20:03:38 -07:00
Danny Ryan
00d3fb4fe6
fix issue 1574 by ensuring that justified checkpoint in store updates when finalized updates if needbe
2020-01-20 18:50:50 -07:00
Danny Ryan
e98c1b4154
don't consider blocks with slots earlier than finalized in on_block fork choice (optimization)
2020-01-20 18:10:39 -07:00
Danny Ryan
f1697d03e7
fix corner case to properly handle skipped slots in get_ancestor
2020-01-20 17:49:09 -07:00
Danny Ryan
7a412534d9
remove test_shard_blocks (outdated) and reduce PERSISTENT_COMMITTEE_PERIOD in minimal config
2020-01-15 18:17:07 -07:00
Danny Ryan
c0b69e531f
cycle through committee indexes instead of through active shards when forming crosslinks
2020-01-15 17:43:11 -07:00
Danny Ryan
3c07b2c954
Make phase 0 fork choice more modular to more easily adopt for slight modifications in phase 1
2020-01-15 16:40:50 -07:00
Danny Ryan
08621a7973
Merge pull request #1567 from ethereum/fix_bls_api
...
[Minor] fix BLS API description
2020-01-15 14:21:15 -07:00
Danny Ryan
1756348e8d
Merge pull request #1569 from ChihChengLiang/minor-fix-indentation
...
[Minor] Fix p2p interface table level
2020-01-15 14:19:42 -07:00
protolambda
5785b4fc5b
custody bits temporary solution
2020-01-14 01:59:01 +01:00
protolambda
f04a686db7
doctoc
2020-01-14 01:42:19 +01:00
protolambda
f6f8bd5350
no custody bits fallback
2020-01-14 01:36:16 +01:00
protolambda
6c74468142
forkchoice store on top of any state now
2020-01-14 01:02:02 +01:00
protolambda
702b253361
update configs for phase1
2020-01-13 19:50:36 +01:00
protolambda
419b6a3250
config change, need more space for worst-case reveals
2020-01-13 19:00:24 +01:00
protolambda
507a9afbfb
apply custody bit fix suggestion from Dankrad
2020-01-13 18:57:56 +01:00
protolambda
4732c7beb1
merge in dev (v0.10) and fix reorg/lint issues
2020-01-13 18:55:21 +01:00
Chih Cheng Liang
065b4ef856
Fix p2p interface indentation
2020-01-13 20:42:23 +08:00
Ben Edgington
b001f250db
Correct typo in heading level
2020-01-13 09:34:34 +00:00
Hsiao-Wei Wang
efbea8c53c
Fix BLS API description
2020-01-13 12:49:03 +08:00
Danny Ryan
676e216beb
reorg specs by fork and move ssz out to own folder. make all of the build and link changes to support move
2020-01-10 11:55:13 -07:00
Danny Ryan
5e96c08f41
add MAXIMUM_GOSSIP_CLOCK_DISPARITY for gossip subnet validations
2020-01-10 07:28:14 -07:00
Danny Ryan
e0cd1090bd
fix voluntary exit to be wrt signed voluntary exit in p2p spec
2020-01-09 17:38:43 -07:00
Danny Ryan
af702d42fd
add slot validation condition for beacon block gossip sub channel
2020-01-09 17:14:00 -07:00
protolambda
68ff136b5d
warn about broken attestation validation, fix most attester slashings tests
2020-01-10 00:00:10 +01:00
Danny Ryan
b8d4ce4c39
fix default value when voting on eth1data
2020-01-09 14:54:07 -07:00
protolambda
140129ec51
Merge dev into phase1 refactor, update BLS phase1
2020-01-09 14:56:06 +01:00
Danny Ryan
f01254dd7f
Merge branch 'dev' into JustinDrake-patch-2
2020-01-08 13:54:16 -07:00
Danny Ryan
fff354d673
Merge branch 'dev' into carl_new_new_bls
2020-01-07 15:44:30 -07:00
Carl Beekhuizen
12ea891ce5
`py_ecc` 2.0.0 baby!
2020-01-07 20:52:20 +01:00
Carl Beekhuizen
8948393e76
Remove references to BLS messages
2020-01-07 20:28:16 +01:00
Hsiao-Wei Wang
fbfe024e7a
Rename vyper file from `.v.py` to `.vy`
2020-01-07 17:20:17 +08:00
Danny Ryan
c3f7f0bc2b
Merge pull request #1556 from ethereum/constant-genesis-slot
...
move GENESIS_SLOT/EPOCH to constants
2020-01-06 17:28:06 -07:00
Danny Ryan
b637b9ad72
fix mod bug for voting period
2020-01-06 17:19:31 -07:00
Danny Ryan
9ea03dce60
add compute_time_at_slot helper in validator doc
2020-01-06 12:16:47 -07:00
Diederik Loerakker
a295451f37
Merge pull request #1555 from ethereum/att-when-ready
...
add eager attestation broadcasting
2020-01-06 01:15:13 +01:00
protolambda
68d93f945c
online countdown fixes
2020-01-06 00:46:36 +01:00
protolambda
9c07e26a4d
length assert not applicable anymore
2020-01-06 00:25:18 +01:00
protolambda
6b872da3ec
light client bitfield is vector now, small size anyway, better separation of committee complexity from data init
2020-01-06 00:17:48 +01:00
protolambda
2f3919c176
bugfix: pass block body to sub processing functions
2020-01-05 23:51:24 +01:00
protolambda
2e6090fcd8
bugfixes for experimental phase0 -> phase1 fork py code
2020-01-05 23:37:42 +01:00
Danny Ryan
50c8727ae7
make genesis delay configurable
2020-01-05 15:29:23 -07:00
Danny Ryan
8515aec7aa
move GENESIS_SLOT/EPOCH to constants as they are not truly configurable
2020-01-05 15:07:41 -07:00
Danny Ryan
5ac0d12205
Merge pull request #1553 from ethereum/eth1-caching
...
`get_eth1_data` uses timestamp instead of block height
2020-01-05 14:44:47 -07:00
Danny Ryan
43d095214c
add note that validator should broadcast attestation immediately when receiving block from expected proposer
2020-01-05 14:10:06 -07:00
protolambda
a8276f683e
don't hardcode shard count, bad example, need upgradeability
2020-01-05 20:20:20 +01:00
protolambda
018927def0
generalize previous-slot function
2020-01-05 20:11:55 +01:00
protolambda
a5faabbf19
Merge branch 'version-pyspec-module' into phase1rebase
2020-01-04 18:28:34 +01:00
Danny Ryan
6dbc02031d
add GENESIS_FORK_VERSION and make associated modifications to support configuration of this variable
2020-01-03 17:48:03 -07:00
Danny Ryan
261b6c0d23
modify get_eth1_data to use timestamp instead of block height
2020-01-03 16:57:04 -07:00
Danny Ryan
7b1a609335
Merge pull request #1549 from status-im/empty-block-response
...
Allow empty lists in streamed responses
2020-01-03 08:14:51 -07:00
Danny Ryan
c9f52d0099
Merge branch 'dev' into phase1rebase
2020-01-03 07:49:23 -07:00
Danny Ryan
0a3cc8a84a
malefactor_key -> malefactor_secret
2020-01-03 07:29:23 -07:00
Carl Beekhuizen
8580ec33f2
'message' -> 'signing_root'
2020-01-03 08:18:34 +01:00
Carl Beekhuizen
51bcb29e28
'DomainWrapper' -> 'SigningRoot'
2020-01-03 07:46:27 +01:00
Carl Beekhuizen
a65d96da04
Merge in dev
2020-01-03 07:35:19 +01:00
Danny Ryan
defeb4e2fd
Merge pull request #1550 from terencechain/patch-94
...
`get_filtered_block_tree` typo
2019-12-31 12:39:52 -07:00
Carl Beekhuizen
e70863ca93
Bytes4 -> DomainType
2019-12-30 06:52:00 +01:00
Carl Beekhuizen
765176ec8c
PySpec SSZ Bytes instantiated from hex
2019-12-27 09:37:26 +01:00
terence tsao
662a986d04
Update 0_fork-choice.md
2019-12-25 09:51:29 -08:00
Jacek Sieka
850d45dae0
Allow empty lists in streamed responses
...
It's possible that block request responses end up not containing any
blocks, so we need a way to encode this.
2019-12-21 17:26:14 +01:00
Diederik Loerakker
b698eff2a7
Merge pull request #1546 from ethereum/master
...
Backport v0.9.4 to dev
2019-12-20 21:25:50 +01:00
Carl Beekhuizen
7af4429011
Make bls a module
2019-12-20 08:41:46 +02:00
Carl Beekhuizen
1e410a1290
Fix typo due to change of interface
...
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
2019-12-20 08:12:43 +02:00
Danny Ryan
780dff76d4
Merge pull request #1540 from ChihChengLiang/note-on-requesting-status-again
...
Add a note on requesting STATUS again
2019-12-19 14:10:54 -07:00
Danny Ryan
e34d22e4f8
bad -> abnormal
2019-12-19 14:04:45 -07:00
Carl Beekhuizen
62cbd0e7da
Revert domain 6 -> 5 to prevent confusion
2019-12-19 15:49:10 +02:00
Carl Beekhuizen
42a3dd4ab1
Implement @djrtwo's review suggestions
2019-12-19 15:47:42 +02:00
Chih Cheng Liang
c4b23590d4
Add a note on requesting STATUS again
2019-12-19 18:50:49 +08:00
Danny Ryan
31d90ea799
add p2p faq on why message-id override
2019-12-18 14:46:35 -07:00
Age Manning
8a03e6d291
Add gossipsub message-id specification
2019-12-18 14:20:51 -07:00
Danny Ryan
caffe8d720
update ENR to use attesation subnets instead of shards
2019-12-17 16:27:13 -07:00
Danny Ryan
fa916323f0
add basics for ENR bitfield
2019-12-17 10:59:15 -07:00
Carl Beekhuizen
177ec939f0
Update ToC
2019-12-17 15:40:26 +02:00
Carl Beekhuizen
995c895b9c
New BLS in Phase 1
2019-12-17 15:33:37 +02:00
Carl Beekhuizen
c239ffb78c
Linting fixes
2019-12-17 12:30:46 +02:00
Carl Beekhuizen
80eb721895
Domains are bytes
2019-12-17 12:20:34 +02:00
Carl Beekhuizen
502ee29537
Phase 0 new BLS
2019-12-17 12:04:56 +02:00
Martin Lundfall
a4f8a77c02
Fix spelling errors found by codespell
2019-12-16 13:02:36 +01:00
Justin
412a06608c
Update 0_beacon-chain.md
2019-12-15 11:32:11 +00:00
Justin
48317d8ac0
Minor cosmetic cleanups
...
* remove `BLS_WITHDRAWAL_PREFIX` (it is not used in phase 1, not phase 0)
* avoid inline comment (# Validate state root)
* simplify header inequality check in `process_proposer_slashing` (using uniqueness of BLS signatures)
* add `block = signed_block.message` helper variable for readability
* (typo) clarify that the state transition function consumes a signed block (as opposed to a block)
* generally make comments more consistent
* consistent formatting of container instantiation for `DepositMessage`
* avoid using three lines for `rewards[index] += Gwei(max_attester_reward // attestation.inclusion_delay)`
* introduce `effective_balance` helper variable for readability, and to avoid multi-line statement
* consistent ordering of `MIN_EPOCHS_TO_INACTIVITY_PENALTY` in the time parameters table
* (typo) "Dequeued validators for activation up to churn limit" => Dequeue validators
* "Save current block as the new latest block" => "Cache current block" (for consistent with `process_slot`)
* (typo) "Verify the validator has not yet exited" => "Verify exit has not been initiated"
* Use Pythonic `default=` for `max()` call in `initiate_validator_exit`
2019-12-15 11:10:43 +00:00
Diederik Loerakker
88e954a9c7
Merge pull request #1522 from ethereum/master
...
backport v093 to dev
2019-12-13 18:56:31 +01:00
Danny Ryan
b09c45ffd2
remove last two references to signing root
2019-12-12 12:34:02 -07:00
Danny Ryan
47ecedb81d
update tocs
2019-12-12 09:48:53 -07:00
Danny Ryan
49a8264f5d
Merge branch 'v09x' into toc_ci
2019-12-12 09:47:20 -07:00
Danny Ryan
4a31503ec0
Merge pull request #1516 from ethereum/dup-indices-attest
...
Fixes #1486 : disallow duplicate indices in indexed attestation
2019-12-12 08:32:43 -07:00
Danny Ryan
52a6cf7ba3
Merge pull request #1514 from ethereum/queue-fix-on-finality
...
Fix queue rate and only activate upon finality
2019-12-12 07:44:57 -07:00
Danny Ryan
199933cb26
fix tocs
2019-12-12 06:57:11 -07:00
Danny Ryan
86fb3acd59
minor changes to finality in activation queue
2019-12-12 06:53:56 -07:00
Danny Ryan
19ec01e4e9
add comment about activation queue sort order
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-12 06:43:37 -07:00
ethers
3d48a3e9eb
Fix dead link to use Internet Archive
2019-12-11 18:17:20 -08:00
protolambda
2405060a7e
Fixes #1486 : disallow duplicate indices in indexed attestation
2019-12-12 01:45:59 +01:00
Danny Ryan
e117b58ae2
add queue eligibility helper
2019-12-11 16:10:18 -07:00
Danny Ryan
6610aeea2f
fix activation queue to finality
2019-12-11 16:00:46 -07:00
Danny Ryan
40025c96dd
Merge pull request #1509 from ethereum/match-slot-target
...
ensure that epoch of attestation slot matches the target epoch
2019-12-10 13:42:32 -07:00
Danny Ryan
66652d0ebd
Merge pull request #1508 from ethereum/better-best
...
ensure the best better-justification is stored in fork choice
2019-12-10 13:41:45 -07:00
Danny Ryan
4636b3e824
Merge pull request #1510 from ethereum/genesis-slot-time
...
explicit use of GENESIS_SLOT in fork choice
2019-12-10 13:41:13 -07:00
Danny Ryan
e4d710590a
add test for queue efficiency
2019-12-10 11:49:26 -07:00
Danny Ryan
d126162ca8
fix activation queue efficiency
2019-12-10 11:25:55 -07:00
Martin Lundfall
ca2b6a0e52
Use consistent header level for TOC generation
2019-12-10 18:29:50 +01:00
Martin Lundfall
12ff64ea1a
Update ToC of specs to consistent use of doctoc
2019-12-10 18:29:40 +01:00
Danny Ryan
2c5c9cb71a
feedback from mikhail
2019-12-10 10:14:49 -07:00
Danny Ryan
8861ca0282
minor typo
...
Co-Authored-By: MrChico <martin.lundfall@protonmail.com>
2019-12-10 10:05:19 -07:00
Danny Ryan
9989f3ea9d
ensure fork choice functions when GENESIS_SLOT != 0
2019-12-09 19:02:16 -07:00
Danny Ryan
432257659e
add asserts to ensure that attestation slot must match the target epoch
2019-12-09 17:31:43 -07:00
Danny Ryan
d4d17ecc4e
ensure the best better-justification is stored in fork choice
2019-12-09 16:47:43 -07:00
Danny Ryan
57aeed1473
Merge branch 'v09x' into filter-fc-justified
2019-12-08 12:17:28 -07:00
Danny Ryan
e53a6daecc
clarify fliter block tree through two line usage
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-08 11:53:45 -07:00
Danny Ryan
ce40666003
version pyspec module and test on one attesterslashing test
2019-12-05 15:06:32 -07:00
Diederik Loerakker
da17f4b3a8
Merge pull request #1505 from ethereum/v09x
...
backport V09x
2019-12-05 22:15:47 +01:00
Danny Ryan
e31f17f037
modify phase 1 to use new signature (no signing_root) pattern
2019-12-05 13:49:52 -07:00
Danny Ryan
a32b0100ff
rebase fixes
2019-12-05 13:31:42 -07:00
Danny Ryan
4bf5eb86c4
fix issues using indexed attestation and custody bit wrapper
2019-12-05 13:31:42 -07:00
Danny Ryan
f533fef167
add missing attestation validations; cleanup process_attestations and fix minor bugs
2019-12-05 13:31:41 -07:00
Danny Ryan
a1ac0d5a80
fix get_shard_committee
2019-12-05 13:31:41 -07:00
Danny Ryan
ddd7cd2964
divide new and old containers out in phase 1
2019-12-05 13:31:41 -07:00
protolambda
72a9dfc430
fix lint problems
2019-12-05 13:31:41 -07:00
protolambda
1623d40b6d
fix: check malefactor custody key
2019-12-05 13:31:41 -07:00
protolambda
41be2ed3ce
bugfix custody bit index lookup + lint fixes
2019-12-05 13:31:40 -07:00
protolambda
1a1c3773f9
implement custody game revamp for new shard proposal: simplifications and immediate processing, since custody data is bounded
2019-12-05 13:31:40 -07:00
protolambda
e73316c13f
change configs to be loaded in time; reload specs module to make new config presets effective. Also fix more lint and consistency problems.
2019-12-05 13:30:49 -07:00
Danny Ryan
d6bfe5d35c
lint phase 1 (2)
2019-12-05 13:29:52 -07:00
Danny Ryan
9f80a7f703
phase1 lint (1)
2019-12-05 13:29:51 -07:00
Danny Ryan
82c9adce8b
fix phase 1 make build (not lint or tests)
2019-12-05 13:29:51 -07:00
Danny Ryan
79be0345d6
fix call to process_attestation
2019-12-05 13:29:51 -07:00
protolambda
03e956f9c9
validator init adjustments
2019-12-05 13:29:51 -07:00
protolambda
36503f98e4
placeholder: rudimentary phase 0 to phase 1 fork process
2019-12-05 13:29:51 -07:00
protolambda
cc0aac3aae
typo
2019-12-05 13:29:50 -07:00
protolambda
74d6021507
PR comment fixes
2019-12-05 13:29:50 -07:00
protolambda
589d5a4f9a
Add notes on custody game spec funcs
2019-12-05 13:29:50 -07:00
protolambda
465f6cb7f0
update readme spec links
2019-12-05 13:29:50 -07:00
protolambda
edef2fd8ae
more refactoring: more immediate custody game, general phase1 beacon chain changes
2019-12-05 13:29:50 -07:00
protolambda
7d2341b40d
Note: is_valid_indexed_attestation is overriden
2019-12-05 13:29:49 -07:00
protolambda
a33e01dab2
Start making phase1 work in pyspec again
2019-12-05 13:29:49 -07:00
Vitalik Buterin
ef936b94fe
Added get_shard_proposer_index
2019-12-05 13:29:49 -07:00
Vitalik Buterin
4d6dcd15ba
Some fixes
2019-12-05 13:29:49 -07:00
Vitalik Buterin
7b4a6e8307
Simplified gasprice update
2019-12-05 13:29:49 -07:00
Vitalik Buterin
8f34a0788d
Some initial changes
2019-12-05 13:29:49 -07:00
vbuterin
b6680d28bb
Update specs/core/1_new_shards.md
...
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
2019-12-05 13:29:48 -07:00
vbuterin
e66b4e06ef
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:48 -07:00
vbuterin
8cb404d926
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:48 -07:00
vbuterin
ff3bd725a3
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:48 -07:00
vbuterin
2ea8eb9cc3
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:48 -07:00
vbuterin
c9cc110ab1
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:47 -07:00
vbuterin
a749dd9a77
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:47 -07:00
vbuterin
822ceade58
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:47 -07:00
vbuterin
0ddc0ba527
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:47 -07:00
vbuterin
bf13757722
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:47 -07:00
vbuterin
793c8616cd
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:47 -07:00
vbuterin
41be60ee6e
Update specs/core/1_new_shards.md
2019-12-05 13:29:46 -07:00
vbuterin
8a6bd201f9
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:46 -07:00
vbuterin
4d1e9e15c6
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:46 -07:00
vbuterin
9810a3d260
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:46 -07:00
vbuterin
9d3a230974
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:46 -07:00
vbuterin
bcd06d88ef
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:46 -07:00
vbuterin
d59e87f876
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:45 -07:00
vbuterin
d3f9bfe68d
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:45 -07:00
vbuterin
213032e51f
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:45 -07:00
vbuterin
462d05d6d8
Update specs/core/1_new_shards.md
...
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
2019-12-05 13:29:45 -07:00
Hsiao-Wei Wang
1fdd0332cc
Update ToC
2019-12-05 13:29:45 -07:00
Vitalik Buterin
03ab1d5785
A few cleanups
2019-12-05 13:29:45 -07:00
Vitalik Buterin
d723431616
Fixed pending attestation handling and added empty transition check
2019-12-05 13:29:44 -07:00
Vitalik Buterin
393436992d
Restructured shard blocks
2019-12-05 13:29:44 -07:00
Vitalik Buterin
6b1bc1e02f
Reformed attestations
2019-12-05 13:29:44 -07:00
Vitalik Buterin
b36820a26c
Changes to make Danny happy
2019-12-05 13:29:44 -07:00
Vitalik Buterin
bf886d698b
Small edits
2019-12-05 13:29:44 -07:00
Vitalik Buterin
bf0a2b7df9
Renaming
2019-12-05 13:29:43 -07:00
Vitalik Buterin
08fc024fbd
Changed fraud proof details
2019-12-05 13:29:43 -07:00
Hsiao-Wei Wang
0ff5985c01
Fix markdown and ToC
2019-12-05 13:29:43 -07:00
Vitalik Buterin
539c681921
Updates to add new proposals
2019-12-05 13:29:43 -07:00
Vitalik Buterin
bb2835ee1b
Shard slots to 128 bytes
2019-12-05 13:29:43 -07:00
Vitalik Buterin
7fc2830730
Some updates
2019-12-05 13:29:43 -07:00
Vitalik Buterin
e5544d055b
Made trace a commitment separate from state roots
2019-12-05 13:29:42 -07:00
Vitalik Buterin
9abfc6276a
Cleaned up state transition and honest committee member
2019-12-05 13:29:42 -07:00
Vitalik Buterin
b792fe696a
formatting
2019-12-05 13:29:42 -07:00
Vitalik Buterin
fe60b4deba
Variable max attestation length
2019-12-05 13:29:42 -07:00
Vitalik Buterin
26df98bf61
MAX_CATCHUP -> MAX_CATCHUP_RATIO
2019-12-05 13:29:42 -07:00