Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.1.0-alpha.4 pre-release #2410

Merged
merged 315 commits into from
May 14, 2021
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
315 commits
Select commit Hold shift + click to select a range
7167c5a
generate sync committee update tests with always_bls
djrtwo Apr 16, 2021
55f2cc6
address @ralexstokes PR comments
djrtwo Apr 16, 2021
c0f1231
Rename MAX_APPLICATION_TRANSACTIONS
paulhauner Apr 19, 2021
9e4f5c1
changed alphabet string to string module.
sammiee5311 Apr 19, 2021
d9e2d2f
Merge pull request #2336 from paulhauner/patch-25
djrtwo Apr 19, 2021
e895c29
Merge pull request #2338 from sammiee5311/dev
hwwhww Apr 19, 2021
f2df4bf
Merge branch 'dev' into refactor-spec-builder2
hwwhww Apr 19, 2021
b49869a
Use `process_execution_payload` in sharding doc
terencechain Apr 20, 2021
a83a2f1
Add note for ByteList and ByteVector
hwwhww Apr 20, 2021
18983bd
Merge pull request #2340 from ethereum/ByteList
djrtwo Apr 20, 2021
03c534d
Merge pull request #2339 from terencechain/patch-114
djrtwo Apr 20, 2021
c8bbc7d
Merge pull request #2334 from ethereum/committee-test
djrtwo Apr 20, 2021
16ac948
Merge pull request #2321 from ethereum/refactor-spec-builder2
hwwhww Apr 20, 2021
5e8304b
Merge SSZ-static tests
protolambda Apr 20, 2021
666f847
Update specs and test format note.
hwwhww Apr 20, 2021
baf4b73
Fix ToC
hwwhww Apr 20, 2021
66e1a28
Use `ALTAIR_FORK_EPOCH` instead of `ALTAIR_FORK_SLOT`
hwwhww Apr 20, 2021
765e994
Merge pull request #2342 from ethereum/fork-epoch
djrtwo Apr 20, 2021
1694cdb
add always_bls for historical batch sanity test
djrtwo Apr 20, 2021
c99d72d
update pyspec dev usage docs, improve makefile
protolambda Apr 21, 2021
2063c96
Merge branch 'dev' into prepare_state
hwwhww Apr 21, 2021
93f6a54
PR feedback from @djrtwo
hwwhww Apr 21, 2021
f7cc6fe
Merge pull request #2344 from ethereum/hist-test
djrtwo Apr 21, 2021
d09a0c2
get_shard_proposer_index: Use slot instead of beacon_state.slot
Nashatyrev Apr 21, 2021
b870f92
Update validator.md
ralexstokes Apr 22, 2021
1c8f56c
Fix indentation of comment
protolambda Apr 22, 2021
de3ac15
introduce alternate spec parser with spec comments
ralexstokes Apr 20, 2021
a9e3eca
demo spec comment feature
ralexstokes Apr 20, 2021
9c189ff
Merge pull request #2349 from ethereum/ralexstokes-patch-1
djrtwo Apr 22, 2021
b0aee5b
Merge pull request #2346 from ethereum/pyspecdocs
ralexstokes Apr 22, 2021
1bd73ea
Merge pull request #2348 from Nashatyrev/fix/shard-proposer-index-see…
protolambda Apr 22, 2021
9d0bfec
Merge pull request #2345 from ralexstokes/use-markdown-parser-for-lit…
protolambda Apr 22, 2021
360a1dd
Respect subcommittees in gossip validations for Altair
ralexstokes Apr 13, 2021
f992a9a
Remove duplicate validation
ralexstokes Apr 13, 2021
99b2cc2
Clarify usage of field in data
ralexstokes Apr 13, 2021
3c07303
Update specs/altair/p2p-interface.md
ralexstokes Apr 15, 2021
917d40b
Fix missing argument in get_active_shard_count() call
Nashatyrev Apr 22, 2021
ebd16e1
add helper in p2p document to executable spec
ralexstokes Apr 15, 2021
d8cdf8d
Merge pull request #2329 from ralexstokes/update-altair-gossip-valida…
djrtwo Apr 22, 2021
7f0ea0e
Merge pull request #2350 from Nashatyrev/fix/get-active-shard-count-m…
djrtwo Apr 22, 2021
d7c276b
Remove obsolete var and calculation
Nashatyrev Apr 22, 2021
8f371f5
Cleanup: move var calculation down right before its usage
Nashatyrev Apr 22, 2021
dcb013c
Merge pull request #2351 from Nashatyrev/fix/remove-obsolete-var
djrtwo Apr 22, 2021
58e7683
Simplify spec comment processing
ralexstokes Apr 23, 2021
93378af
Fix typing problem: `upgrade_to_altair` should use `phase0.get_curren…
ericsson49 Apr 23, 2021
f55b327
fix typos in sharding
ericsson49 Apr 23, 2021
ee360df
missed `body_summary` attribute when accessing`ShardBlobBodySummary.b…
ericsson49 Apr 23, 2021
47e52a6
fix typo: `get_shard_proposer_index` vs `get_shard_proposer`
ericsson49 Apr 24, 2021
6814efa
fix typo: `state` missed in `get_committee_count_per_slot` call
ericsson49 Apr 24, 2021
77bceea
fix typo: `SLOTS_IN_EPOCH` used instead of `SLOTS_PER_EPOCH`
ericsson49 Apr 24, 2021
e053568
fix typo: `c` var name used instad of `header` in `process_pending_he…
ericsson49 Apr 24, 2021
6288252
fix typo: `process_confirmed_header_fees` called instead of `charge_c…
ericsson49 Apr 24, 2021
d99cfee
typing problem fixed: `get_total_balance` expected second argument to…
ericsson49 Apr 24, 2021
baa3e95
Merge pull request #2354 from ethereum/ralexstokes-patch-1
djrtwo Apr 26, 2021
fa24867
Merge pull request #2356 from ericsson49/ericsson49/fix_typos_in_shar…
djrtwo Apr 26, 2021
fd9c96d
Merge pull request #2358 from ericsson49/ericsson49/fix_process_shard…
protolambda Apr 26, 2021
ac98da6
Merge pull request #2359 from ericsson49/ericsson49/fix_pass_set_inst…
protolambda Apr 26, 2021
f2c47de
Merge pull request #2355 from ericsson49/ericsson49/fix_upgrade_to_al…
protolambda Apr 26, 2021
17bc3c1
convert `shard` to `CommitteeIndex` when passing to `get_beacon_commi…
ericsson49 Apr 27, 2021
865a077
convert `shard` and `index` to `CommitteeIndex` in `reset_pending_hea…
ericsson49 Apr 27, 2021
4d684bd
convert `shard` to `CommitteeIndex` in `charge_confirmed_header_fees`
ericsson49 Apr 27, 2021
6031417
Merge pull request #2301 from ethereum/fix-bouncing-attack-tests
djrtwo Apr 27, 2021
a0c3031
convert `shard` to `CommitteeIndex` using `compute_committee_index_fr…
ericsson49 Apr 27, 2021
e3c95e9
use `committee_index` instead of `shard`
ericsson49 Apr 27, 2021
9bb3444
Add `syncnets` data to Altair `MetaData`.
ralexstokes Apr 23, 2021
ae429a3
add Modified comment
djrtwo Apr 27, 2021
ca1680d
Merge pull request #2361 from ericsson49/ericsson49/fix_committee_ind…
djrtwo Apr 27, 2021
c090d6a
Merge pull request #2352 from ralexstokes/add-altair-metadata-updates
djrtwo Apr 27, 2021
2628721
Merge pull request #2323 from ethereum/prepare_state
djrtwo Apr 27, 2021
eb9f7ad
add altair p2p to readme
djrtwo Apr 27, 2021
9f74f1f
minor sync committee cleanups
djrtwo Apr 27, 2021
e89fae8
Apply suggestions from code review
djrtwo Apr 28, 2021
c3dfc2e
Merge pull request #2362 from ethereum/sync-cleanup
djrtwo Apr 28, 2021
c598610
fix note about sharding beacon state extension
protolambda Apr 29, 2021
2af585b
Merge pull request #2365 from ethereum/fix-sharding-note
hwwhww Apr 29, 2021
86d8a10
Replace unspecified SHARD_COUNT const with get_active_shard_count(pre…
Nashatyrev Apr 30, 2021
36fd919
Replace unspecified DOMAIN_SHARD_HEADER const with DOMAIN_SHARD_PROPOSER
Nashatyrev Apr 30, 2021
637f232
Need to specify MAX_SHARDS since we are filling the Vector of MAX_SHA…
Nashatyrev Apr 30, 2021
99d5010
Replace unspecified SHARD_COUNT const with get_active_shard_count(pre…
Nashatyrev Apr 30, 2021
2199b8e
Calc the right root with respect to (slot, shard) for an empty Pendin…
Nashatyrev Apr 30, 2021
dca6d33
Search winning 'empty' PendingShardHeader index by the empty DataComm…
Nashatyrev Apr 30, 2021
68d6e43
Adjust sync committee size and duration
ralexstokes May 1, 2021
780121f
Add backticks to the arguments in functional comments
terencechain May 3, 2021
930ca61
Fix lint (124 > 120 characters)
terencechain May 3, 2021
681490e
Merge pull request #2372 from terencechain/patch-115
hwwhww May 3, 2021
053179c
comments and tests on altair
djrtwo May 4, 2021
80df9e6
Merge branch 'dev' into altair-pass
djrtwo May 4, 2021
9980d20
Fix lint
hwwhww May 4, 2021
e9580dc
Merge pull request #2374 from ethereum/altair-pass
protolambda May 4, 2021
8558bd7
Merge pull request #2367 from Nashatyrev/fix/unknown-shard-count-const
protolambda May 4, 2021
0438f2f
whitespace
ralexstokes May 1, 2021
7b33c11
simplify sync committee pubkey aggregation in altair
ralexstokes May 1, 2021
9c3d598
add documentation about duplicate pubkeys
ralexstokes May 4, 2021
7d23656
adjust subnet count to reflect smaller sync committees
ralexstokes May 4, 2021
eae64fd
clean up whitespace on altair files
ralexstokes May 4, 2021
488bf2c
Merge pull request #2341 from ethereum/merge-ssz-tests
protolambda May 4, 2021
7a168be
allow fault tolerance equal to threshold, not just above
ralexstokes May 4, 2021
3b80324
Compute `LIGHT_CLIENT_UPDATE_TIMEOUT` in lieu of maintaining a constant
ralexstokes May 4, 2021
165c960
Update config value to reflect spec
ralexstokes May 4, 2021
f37f9a3
include merge in generators
protolambda May 4, 2021
ab693c9
update spec test constants for merge
protolambda May 4, 2021
521cffc
update execution-payload processing to isolate payload from block body
protolambda May 4, 2021
25d0d67
start testing of merge functionality
protolambda May 4, 2021
36032fd
update doc about format
protolambda May 4, 2021
a562f2a
"toward" -> "closer to" for penalty adjustments
vbuterin May 5, 2021
9dcdbaf
Reorganization of config params to put sync committee in one section
vbuterin May 5, 2021
b310482
Update specs/altair/beacon-chain.md
vbuterin May 5, 2021
79fc411
Adjust is_transition_block call in fork-choice
mkalinin May 5, 2021
ddc5942
Revert "Calc the right root with respect to (slot, shard) for an empt…
Nashatyrev May 5, 2021
befe4c7
Revert "Search winning 'empty' PendingShardHeader index by the empty …
Nashatyrev May 5, 2021
3cc1256
update_pending_votes: search pending header by header.(root + slot + …
Nashatyrev May 5, 2021
8ff968f
Merge pull request #2381 from ethereum/vbuterin-patch-11
hwwhww May 5, 2021
786e611
Flags to BitVector
dankrad May 5, 2021
df6bd1b
BitVector -> Bitvector
dankrad May 5, 2021
d383a14
Fix ToC
hwwhww May 5, 2021
6a9b367
Fix the type of `EPOCHS_PER_SYNC_COMMITTEE_PERIOD` and update the con…
hwwhww May 5, 2021
ded6d5b
Merge pull request #2377 from ralexstokes/altair-whitespace
hwwhww May 5, 2021
e2be761
introduce merge fork version
protolambda May 5, 2021
470c6dc
update test runner to handle merge phase
protolambda May 5, 2021
ff3a82e
fix transactions field in exec payload helper
protolambda May 5, 2021
865d7db
update altair tests to not collide with Merge + fix merge test triggers
protolambda May 5, 2021
cc11328
fix merge forkchoice tests with mock get_pow_block
protolambda May 5, 2021
00cd1c3
fix forkchoice unittest not recognizing merge spec
protolambda May 5, 2021
ed4b8d5
`get_shard_proposer_index` to use `DOMAIN_SHARD_PROPOSER`
terencechain May 5, 2021
2ef6291
Minimal execution payload test, more merge-specific testing in later PR
protolambda May 5, 2021
56bcb63
Lint fixes for merge testing update
protolambda May 5, 2021
f770d50
Merge pull request #2384 from terencechain/patch-116
protolambda May 5, 2021
a2cf833
Update specs/altair/beacon-chain.md
ralexstokes May 5, 2021
238a9b0
Correct confusing comments in "get_sync_committee_indices"
dankrad May 5, 2021
2aef63b
Fix back the EFFECTIVE_BALANCE_MAX_DOWNWARD_DEVIATION constant calcul…
Nashatyrev May 5, 2021
a382cf6
Refactor participation flag list
dankrad May 5, 2021
227d100
Update toc
dankrad May 5, 2021
8ac59b7
fix old ssz-static todo comment
protolambda May 5, 2021
687641a
Remove extra variable
dankrad May 5, 2021
55471bc
Revert "BitVector -> Bitvector"
dankrad May 5, 2021
7752403
Revert "Flags to BitVector"
dankrad May 5, 2021
b041a9b
Further flag_index revert
dankrad May 5, 2021
76b5974
is_execution_enabled function + misc review fixes
protolambda May 6, 2021
42733b7
remove merge-test exec-payload trigger debug helper
protolambda May 6, 2021
ea6c042
Altair: carry-over prev epoch participation
michaelsproul May 6, 2021
cbf9f85
Remove duplicate inactivity leak
dankrad May 6, 2021
cf724da
No inactivity penalty for untimely head
dankrad May 6, 2021
81a8c27
Integrate get_inactivity_penalty_deltas into reward computation for b…
dankrad May 6, 2021
4c73fec
convert `LightClientStore` to python object instead of SSZ object
ralexstokes May 6, 2021
953b027
whitespace
ralexstokes May 6, 2021
4b27b07
add missing comma
djrtwo May 6, 2021
609172d
Merge pull request #2370 from ralexstokes/simplify-sync-committee-agg…
djrtwo May 6, 2021
13409dc
Merge branch 'dev' into adjust-sync-comm-params
djrtwo May 6, 2021
2a4eaa5
Merge pull request #2371 from ralexstokes/adjust-sync-comm-params
djrtwo May 6, 2021
b979ea1
Merge pull request #2378 from ralexstokes/update-altair-sync-protocol
djrtwo May 6, 2021
637cf07
Merge pull request #2376 from ralexstokes/adjust-sync-committee-subne…
djrtwo May 6, 2021
ba2c717
Remove PARTICIPATION_FLAGS
dankrad May 6, 2021
2fc68c4
Update specs/altair/beacon-chain.md
dankrad May 6, 2021
2bc2a30
scaffold execution payload tests
protolambda May 5, 2021
22b7c39
Include {slot} param to shard_blob_ subnets
Nashatyrev May 7, 2021
bd376fa
Fix the table of contents
Nashatyrev May 7, 2021
86104ea
Use stable sync committee indices when processing block rewards
ralexstokes May 7, 2021
04a9595
Add notes about sync committee stability
ralexstokes May 7, 2021
d1bedbf
Update inactivity penalty deltas processing
vbuterin May 7, 2021
b336b71
Update specs/altair/beacon-chain.md
ralexstokes May 7, 2021
72a4ff8
add test to ensure sync committees are referenced from the state
ralexstokes May 8, 2021
e38f758
`adjustment_quotient` to use `previous_epoch`
terencechain May 10, 2021
e78e045
Implement execution payload tests
mkalinin May 10, 2021
cc109c0
Merge pull request #2394 from ralexstokes/fix-sync-committee-iteration
djrtwo May 10, 2021
2539d4e
Merge pull request #2380 from ethereum/merge-test-vectors
djrtwo May 10, 2021
dd9fb06
Merge branch 'dev' into vbuterin-patch-12
djrtwo May 10, 2021
d239b7a
Merge pull request #2396 from terencechain/patch-117
djrtwo May 10, 2021
71eea1a
Merge pull request #2382 from ethereum/vbuterin-patch-12
djrtwo May 10, 2021
f58ba8f
define execution engine protocol
protolambda May 10, 2021
1564f62
Merge pull request #2386 from Nashatyrev/fix/effective-balance-max-de…
djrtwo May 10, 2021
95e2aa6
Merge branch 'dev' into dankrad-altair-review
djrtwo May 10, 2021
cd78425
lint
djrtwo May 10, 2021
1494fe6
add get_inactivity_penalty_deltas back in
djrtwo May 10, 2021
ff706e5
add logic for handling sync committee off by one issue
djrtwo May 10, 2021
d8e2d19
spelling
djrtwo May 10, 2021
77d607a
fix test
djrtwo May 10, 2021
85198fa
lint
djrtwo May 10, 2021
a6b8574
test
djrtwo May 10, 2021
3c609e0
pr feedback
djrtwo May 11, 2021
b1d0364
Merge branch 'dev' into vbuterin-patch-11
djrtwo May 11, 2021
e31a2af
remove extra if
djrtwo May 11, 2021
5792afc
Merge branch 'dev' into bbr-ws
djrtwo May 11, 2021
b71aa3f
add `transition` spec test format
ralexstokes Apr 28, 2021
0cc6e15
Update tests/formats/transition/README.md
ralexstokes Apr 30, 2021
d34b2a0
Use `fork_block` index in lieu of fork flag
ralexstokes Apr 30, 2021
0e71496
add "normal" transition test
ralexstokes Apr 30, 2021
3f3aa4f
add some altair tests
ralexstokes Apr 30, 2021
c08fb77
More altair fork tests with varied block conditions
ralexstokes Apr 30, 2021
d744825
update docs
ralexstokes May 4, 2021
e2aa595
PR feedback
ralexstokes May 11, 2021
554f514
Replace the {shard}_{slot} with {subnet_id}. Add {subnet_id} calculat…
Nashatyrev May 11, 2021
488ceed
add notes about repeatedly failing tos erve blocks as being disconnce…
djrtwo May 11, 2021
5074fca
Merge pull request #2363 from ralexstokes/add-altair-fork-transition-…
djrtwo May 11, 2021
a9cc036
remove timely_head penalty
djrtwo May 11, 2021
f328f77
clarify fork upgrade conditions
ralexstokes May 11, 2021
859a7d7
Only allow sync committee period calculation at period boundaries
ralexstokes May 11, 2021
43ba615
Apply suggestions from code review
djrtwo May 11, 2021
2747882
use current_Epoch seed when calculating next_sync_committee
djrtwo May 11, 2021
200c049
fix seed calc issue
djrtwo May 11, 2021
468f42c
Merge branch 'simplify-sync-committee-calc' into sync-seed
djrtwo May 11, 2021
09cefa0
remov sync signature todo
djrtwo May 11, 2021
caa7992
Merge branch 'dev' into vbuterin-patch-11
djrtwo May 11, 2021
8bb0531
only give counter-weight penalty if leak. TMP
djrtwo May 11, 2021
39924c4
Merge pull request #2404 from ralexstokes/second-pass-altair-fork
djrtwo May 11, 2021
0390ab8
Protocols pyspec support + execution payload tests cleanup
protolambda May 12, 2021
dad698f
Update unit tests: add `test_compute_subnets_for_sync_committee_slot_…
hwwhww May 12, 2021
17820e3
Skip the mainnet config slow tests
hwwhww May 12, 2021
8e07ece
Minor rephrase
hwwhww May 12, 2021
82b7a7b
Apply suggestions from code review
djrtwo May 12, 2021
f52f067
add resourceunavailable error code
djrtwo May 12, 2021
6371707
Apply suggestions from code review
djrtwo May 12, 2021
dff12dd
Merge pull request #2400 from ethereum/sync-committee-off-by-1
djrtwo May 12, 2021
1a7aa89
Merge branch 'dev' into sync-seed
djrtwo May 12, 2021
84830e8
Merge pull request #2131 from ethereum/bbr-ws
djrtwo May 12, 2021
a8791f0
'get_sync_committee -> get_next_sync_committee
djrtwo May 12, 2021
133875a
fix sync_committe_update tests
djrtwo May 12, 2021
ddc471b
Merge pull request #2398 from ethereum/exec-engine
protolambda May 12, 2021
4286f85
Update validator guide with restricted sync committee computation
ralexstokes May 12, 2021
9a0be85
Merge pull request #2406 from ethereum/sync-seed
djrtwo May 12, 2021
a0f86d1
Merge pull request #2407 from ethereum/ralexstokes-patch-1
djrtwo May 12, 2021
5188671
Update specs/altair/beacon-chain.md
djrtwo May 12, 2021
a469b46
Merge branch 'dev' into keep-inactivity-function
djrtwo May 12, 2021
51a5474
Merge pull request #2399 from ethereum/keep-inactivity-function
djrtwo May 12, 2021
24f6e1e
Merge branch 'dev' into vbuterin-patch-11
djrtwo May 12, 2021
fa1bdab
add random inactivity scores tests
djrtwo May 12, 2021
4a91c93
add epoch processing tests for inactivity udpates
djrtwo May 12, 2021
a2c8e0e
Merge branch 'dev' into translate-participation-test
djrtwo May 13, 2021
a6d5b2e
pull state randomization functions out of rewards testing
djrtwo May 13, 2021
57e13fd
add INACTIVITY_SCORE_RECOVERY_RATE to configs
djrtwo May 13, 2021
a52565a
add random altair fork tests for better translation coverage + pr review
djrtwo May 13, 2021
7faeaba
Merge pull request #2408 from ethereum/translate-participation-test
djrtwo May 13, 2021
699a3f8
pr feedback
djrtwo May 13, 2021
d38af7a
Merge branch 'dev' into vbuterin-patch-11
djrtwo May 13, 2021
049210b
utilize new randomize functions in process_inactivity_updates testing
djrtwo May 13, 2021
ebafc94
Merge pull request #2395 from ethereum/vbuterin-patch-11
djrtwo May 13, 2021
d3160ba
update ExecutionEngine protocol arg references
protolambda May 13, 2021
1310105
Return non-duplicated sync committee subnets
terencechain May 13, 2021
5dd29b6
fix tests and minor copy edit
djrtwo May 14, 2021
160b704
ensure indices are ordered source, target, head everywhere
djrtwo May 14, 2021
ba73a68
Merge pull request #2409 from terencechain/patch-118
djrtwo May 14, 2021
86792b9
Merge pull request #2411 from ethereum/order-indices
protolambda May 14, 2021
4cd9a6c
Merge pull request #2385 from ethereum/execution-payload-testing
djrtwo May 14, 2021
ccacc93
bmp VERSION.txt to 1.1.0-alpha.4
djrtwo May 14, 2021
a1e64c1
Merge pull request #2368 from Nashatyrev/fix/root-for-empty-shard-header
protolambda May 14, 2021
5984fd7
Merge pull request #2393 from Nashatyrev/cosmetics/blob-subnet-name
protolambda May 14, 2021
2bac3d8
Merge pull request #2412 from ethereum/bump-version
protolambda May 14, 2021
110e6b3
remove resourceunavailable for more discussion
djrtwo May 14, 2021
021e6bb
Merge pull request #2413 from ethereum/remove-error-code
djrtwo May 14, 2021
c87333f
minor review from dankrad on release pr
djrtwo May 14, 2021
7e0cc36
Merge pull request #2415 from ethereum/dankrad-review
djrtwo May 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ eth2.0-spec-tests/
# Dynamically built from Markdown spec
tests/core/pyspec/eth2spec/phase0/
tests/core/pyspec/eth2spec/altair/
tests/core/pyspec/eth2spec/merge/

# coverage reports
.htmlcov
Expand Down
21 changes: 13 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ SPEC_DIR = ./specs
SSZ_DIR = ./ssz
TEST_LIBS_DIR = ./tests/core
TEST_GENERATORS_DIR = ./tests/generators
# The working dir during testing
PY_SPEC_DIR = $(TEST_LIBS_DIR)/pyspec
ETH2SPEC_MODULE_DIR = $(PY_SPEC_DIR)/eth2spec
TEST_REPORT_DIR = $(PY_SPEC_DIR)/test-reports
TEST_VECTOR_DIR = ../eth2.0-spec-tests/tests
GENERATOR_DIR = ./tests/generators
SOLIDITY_DEPOSIT_CONTRACT_DIR = ./solidity_deposit_contract
Expand All @@ -27,7 +30,8 @@ MARKDOWN_FILES = $(wildcard $(SPEC_DIR)/phase0/*.md) $(wildcard $(SPEC_DIR)/alta
$(wildcard $(SPEC_DIR)/sharding/*.md)

COV_HTML_OUT=.htmlcov
COV_INDEX_FILE=$(PY_SPEC_DIR)/$(COV_HTML_OUT)/index.html
COV_HTML_OUT_DIR=$(PY_SPEC_DIR)/$(COV_HTML_OUT)
COV_INDEX_FILE=$(COV_HTML_OUT_DIR)/index.html

CURRENT_DIR = ${CURDIR}
LINTER_CONFIG_FILE = $(CURRENT_DIR)/linter.ini
Expand All @@ -53,16 +57,17 @@ partial_clean:
rm -f .coverage
rm -rf $(PY_SPEC_DIR)/.pytest_cache
rm -rf $(DEPOSIT_CONTRACT_TESTER_DIR)/.pytest_cache
rm -rf $(PY_SPEC_DIR)/phase0
rm -rf $(PY_SPEC_DIR)/altair
rm -rf $(PY_SPEC_DIR)/$(COV_HTML_OUT)
rm -rf $(PY_SPEC_DIR)/.coverage
rm -rf $(PY_SPEC_DIR)/test-reports
rm -rf $(ETH2SPEC_MODULE_DIR)/phase0
rm -rf $(ETH2SPEC_MODULE_DIR)/altair
rm -rf $(ETH2SPEC_MODULE_DIR)/merge
rm -rf $(COV_HTML_OUT_DIR)
rm -rf $(TEST_REPORT_DIR)
rm -rf eth2spec.egg-info dist build
rm -rf build

clean: partial_clean
rm -rf venv
# legacy cleanup. The pyspec venv should be located at the repository root
rm -rf $(PY_SPEC_DIR)/venv
rm -rf $(DEPOSIT_CONTRACT_COMPILER_DIR)/venv
rm -rf $(DEPOSIT_CONTRACT_TESTER_DIR)/venv
Expand All @@ -87,7 +92,7 @@ pyspec:

# installs the packages to run pyspec tests
install_test:
python3 -m venv venv; . venv/bin/activate; python3 -m pip install .[lint]; python3 -m pip install -e .[test]
python3 -m venv venv; . venv/bin/activate; python3 -m pip install -e .[lint]; python3 -m pip install -e .[test]

test: pyspec
. venv/bin/activate; cd $(PY_SPEC_DIR); \
Expand Down Expand Up @@ -119,7 +124,7 @@ codespell:
lint: pyspec
. venv/bin/activate; cd $(PY_SPEC_DIR); \
flake8 --config $(LINTER_CONFIG_FILE) ./eth2spec \
&& mypy --config-file $(LINTER_CONFIG_FILE) -p eth2spec.phase0 -p eth2spec.altair
&& mypy --config-file $(LINTER_CONFIG_FILE) -p eth2spec.phase0 -p eth2spec.altair -p eth2spec.merge

lint_generators: pyspec
. venv/bin/activate; cd $(TEST_GENERATORS_DIR); \
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ The current features are:
* [Deposit Contract](specs/phase0/deposit-contract.md)
* [Honest Validator](specs/phase0/validator.md)
* [P2P Networking](specs/phase0/p2p-interface.md)
* [Weak Subjectivity](specs/phase0/weak-subjectivity.md)

### Altair

* [Beacon chain changes](specs/altair/beacon-chain.md)
* [Altair fork](specs/altair/fork.md)
* [Light client sync protocol](specs/altair/sync-protocol.md)
* [Honest Validator guide changes](specs/altair/validator.md)
* [P2P Networking](specs/altair/p2p-interface.md)

### Merge

Expand Down
2 changes: 1 addition & 1 deletion configs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Over time, the need to sync an older state may be deprecated.
In this case, the prefix on the new constant may be removed, and the old constant will keep a special name before completely being removed.

A previous iteration of forking made use of "timelines", but this collides with the definitions used in the spec (constants for special forking slots, etc.), and was not integrated sufficiently in any of the spec tools or implementations.
Instead, the config essentially doubles as fork definition now, e.g. changing the value for `ALTAIR_FORK_SLOT` changes the fork.
Instead, the config essentially doubles as fork definition now, e.g. changing the value for `ALTAIR_FORK_EPOCH` changes the fork.

Another reason to prefer forking through constants is the ability to program a forking moment based on context, instead of being limited to a static slot number.

Expand Down
34 changes: 17 additions & 17 deletions configs/mainnet/altair.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Mainnet preset - Altair

CONFIG_NAME: "mainnet"

# Updated penalty values
# ---------------------------------------------------------------
# 3 * 2**24 (= 50,331,648)
Expand All @@ -12,20 +10,20 @@ MIN_SLASHING_PENALTY_QUOTIENT_ALTAIR: 64
PROPORTIONAL_SLASHING_MULTIPLIER_ALTAIR: 2


# Misc
# Sync committee
# ---------------------------------------------------------------
# 2**10 (= 1,024)
SYNC_COMMITTEE_SIZE: 1024
# 2**6 (= 64)
SYNC_PUBKEYS_PER_AGGREGATE: 64
# 2**2 (= 4)
INACTIVITY_SCORE_BIAS: 4
# 2**9 (= 512)
SYNC_COMMITTEE_SIZE: 512
# 2**9 (= 512)
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 512


# Time parameters
# Misc
# ---------------------------------------------------------------
# 2**8 (= 256)
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 256
# 2**2 (= 4)
INACTIVITY_SCORE_BIAS: 4
# 2**4 (= 16)
INACTIVITY_SCORE_RECOVERY_RATE: 16


# Signature domains
Expand All @@ -40,14 +38,16 @@ DOMAIN_CONTRIBUTION_AND_PROOF: 0x09000000
# 0x01000000
ALTAIR_FORK_VERSION: 0x01000000
# TBD
ALTAIR_FORK_SLOT: 18446744073709551615
ALTAIR_FORK_EPOCH: 18446744073709551615


# Sync protocol
# ---------------------------------------------------------------
# 1
MIN_SYNC_COMMITTEE_PARTICIPANTS: 1
# 2**13
MAX_VALID_LIGHT_CLIENT_UPDATES: 8192
# 2**13 (=8192)
LIGHT_CLIENT_UPDATE_TIMEOUT: 8192


# Validator
# ---------------------------------------------------------------
# 2**2 (= 4)
TARGET_AGGREGATORS_PER_SYNC_SUBCOMMITTEE: 4
2 changes: 0 additions & 2 deletions configs/mainnet/custody_game.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Mainnet preset - Custody Game

CONFIG_NAME: "mainnet"

# Time parameters
# ---------------------------------------------------------------
# 2**1 (= 2) epochs, 12.8 minutes
Expand Down
4 changes: 1 addition & 3 deletions configs/mainnet/merge.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Mainnet preset - The Merge

CONFIG_NAME: "mainnet"

# Fork
# ---------------------------------------------------------------
MERGE_FORK_VERSION: 0x02000000
# TBD, temporarily max uint64 value: 2**64 - 1
MERGE_FORK_SLOT: 18446744073709551615
MERGE_FORK_EPOCH: 18446744073709551615
2 changes: 0 additions & 2 deletions configs/mainnet/phase0.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Mainnet preset

CONFIG_NAME: "mainnet"

# Misc
# ---------------------------------------------------------------
# 2**6 (= 64)
Expand Down
4 changes: 1 addition & 3 deletions configs/mainnet/sharding.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Mainnet preset - Sharding

CONFIG_NAME: "mainnet"

# Fork
# ---------------------------------------------------------------
SHARDING_FORK_VERSION: 0x03000000
# TBD, temporarily max uint64 value: 2**64 - 1
SHARDING_FORK_SLOT: 18446744073709551615
SHARDING_FORK_EPOCH: 18446744073709551615


# Beacon-chain
Expand Down
29 changes: 15 additions & 14 deletions configs/minimal/altair.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Minimal preset - Altair

CONFIG_NAME: "minimal"

# Updated penalty values
# ---------------------------------------------------------------
# 3 * 2**24 (= 50,331,648)
Expand All @@ -12,20 +10,20 @@ MIN_SLASHING_PENALTY_QUOTIENT_ALTAIR: 64
PROPORTIONAL_SLASHING_MULTIPLIER_ALTAIR: 2


# Misc
# Sync committee
# ---------------------------------------------------------------
# [customized]
SYNC_COMMITTEE_SIZE: 32
# [customized]
SYNC_PUBKEYS_PER_AGGREGATE: 16
# 2**2 (= 4)
INACTIVITY_SCORE_BIAS: 4
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 8


# Time parameters
# Misc
# ---------------------------------------------------------------
# [customized]
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 8
# 2**2 (= 4)
INACTIVITY_SCORE_BIAS: 4
# 2**4 (= 16)
INACTIVITY_SCORE_RECOVERY_RATE: 16


# Signature domains
Expand All @@ -40,14 +38,17 @@ DOMAIN_CONTRIBUTION_AND_PROOF: 0x09000000
# [customized] Highest byte set to 0x01 to avoid collisions with mainnet versioning
ALTAIR_FORK_VERSION: 0x01000001
# [customized]
ALTAIR_FORK_SLOT: 18446744073709551615
ALTAIR_FORK_EPOCH: 18446744073709551615


# Sync protocol
# ---------------------------------------------------------------
# 1
MIN_SYNC_COMMITTEE_PARTICIPANTS: 1
# [customized]
MAX_VALID_LIGHT_CLIENT_UPDATES: 32
# [customized]
LIGHT_CLIENT_UPDATE_TIMEOUT: 32



# Validator
# ---------------------------------------------------------------
# 2**2 (= 4)
TARGET_AGGREGATORS_PER_SYNC_SUBCOMMITTEE: 4
2 changes: 0 additions & 2 deletions configs/minimal/custody_game.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Minimal preset - Custody Game

CONFIG_NAME: "minimal"

# Time parameters
# ---------------------------------------------------------------
# 2**1 (= 2) epochs, 12.8 minutes
Expand Down
4 changes: 1 addition & 3 deletions configs/minimal/merge.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Minimal preset - The Merge

CONFIG_NAME: "minimal"

# Fork
# ---------------------------------------------------------------
MERGE_FORK_VERSION: 0x02000001
# TBD, temporarily max uint64 value: 2**64 - 1
MERGE_FORK_SLOT: 18446744073709551615
MERGE_FORK_EPOCH: 18446744073709551615
2 changes: 0 additions & 2 deletions configs/minimal/phase0.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Minimal preset

CONFIG_NAME: "minimal"

# Misc
# ---------------------------------------------------------------

Expand Down
4 changes: 1 addition & 3 deletions configs/minimal/sharding.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Minimal preset - Sharding

CONFIG_NAME: "minimal"

# Fork
# ---------------------------------------------------------------
SHARDING_FORK_VERSION: 0x03000001
# TBD, temporarily max uint64 value: 2**64 - 1
MERGE_FORK_SLOT: 18446744073709551615
MERGE_FORK_EPOCH: 18446744073709551615


# Beacon-chain
Expand Down
Loading