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

release v1.3.0-alpha.2 #3161

Merged
merged 63 commits into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
b5bcec8
deprecate phase 0-only versions of beacon_blocks_by_{range,root}
tersec Sep 26, 2022
ff0e525
Pass blocks to LC data creation functions
etan-status Oct 28, 2022
08ff716
Merge branch 'dev' into lc-blockfuncs
etan-status Nov 7, 2022
b612ec5
cleanup explicit fork enumerations in tests
etan-status Nov 16, 2022
19c8f21
Fix type annotation in verify_aggregate_kzg_proof
xrchz Nov 19, 2022
c3000ed
Merge branch 'dev' into sf-epochoverrides
etan-status Nov 19, 2022
0fb2447
Merge branch 'dev' into lc-blockfuncs
etan-status Nov 19, 2022
3d23574
Merge pull request #3120 from xrchz/fix-type-annot
asn-d6 Nov 21, 2022
4e3b700
Fix initialization of VERSIONED_HASH_VERSION_KZG
zilm13 Nov 22, 2022
2d99f1b
Merge pull request #3123 from zilm13/fix/kzg-constant
hwwhww Nov 22, 2022
3624742
Remove is_data_available
terencechain Nov 22, 2022
d51345c
proper EL block hash implementation in tests
etan-status Nov 22, 2022
d202f62
Fix EIP4844 previous_version in tests
hwwhww Nov 22, 2022
e9111a5
Cleanup unnecessary init
etan-status Nov 23, 2022
f0ff15c
EIP4844: Refactor Fiat-Shamir logic to handle empty sidecars (#3093)
kevaundray Nov 23, 2022
30bc390
Merge pull request #3127 from ethereum/fix-eip4844-previous-version
ralexstokes Nov 23, 2022
3ec25a8
Fix docstring for compute_powers and compute_challenges methods (#3130)
kevaundray Nov 24, 2022
a1e46d1
EIP4844: Fix return value of compute_challenges (#3129)
roberto-bayardo Nov 24, 2022
b5a0ff0
Add link to Capella's P2P doc
potuz Nov 24, 2022
bfc634d
Amount is Wei in EL world / Gwei in CL
etan-status Nov 24, 2022
0bb3470
Formatting
etan-status Nov 24, 2022
f804109
Convert to Wei before multiply
etan-status Nov 24, 2022
b65f1c2
Merge pull request #3131 from potuz/add-capella-p2p-link
hwwhww Nov 28, 2022
4f32fd9
Enable EIP4844 lint and fix Pylint
hwwhww Nov 28, 2022
b3a1766
WIP. Fixing mypy errors
hwwhww Nov 28, 2022
edde563
Workaround: ignore Invalid base class "ByteVector" error
hwwhww Nov 28, 2022
339b788
Revert previous changes. Remove optimistic wording
terencechain Nov 29, 2022
b62c9e8
Merge pull request #3014 from tersec/deprecate-phase0-beacon-blocks-r…
hwwhww Nov 29, 2022
5b0bfe7
EIP4844: Update `MAX_BLOBS_PER_BLOCK` to 4
terencechain Nov 30, 2022
aae00a0
Clarify that full withdrawals only apply to exited validators
timbeiko Dec 1, 2022
9ae59e2
Merge pull request #3146 from timbeiko/patch-1
djrtwo Dec 1, 2022
602f846
Merge pull request #3134 from ethereum/eip4844-lint
hwwhww Dec 1, 2022
23d3aee
EIP4844 precompile: Be strict when parsing field elements from networ…
asn-d6 Dec 1, 2022
0dda0b2
Fix tests
hwwhww Dec 1, 2022
8524f54
Merge branch 'dev' into sf-epochoverrides
etan-status Dec 5, 2022
79c2099
Merge branch 'dev' into el-rlp
etan-status Dec 5, 2022
f4dafcf
Merge branch 'dev' into lc-blockfuncs
etan-status Dec 5, 2022
2a7083d
Merge pull request #3070 from etan-status/lc-blockfuncs
hwwhww Dec 6, 2022
5498519
Merge pull request #3125 from terencechain/rm-is-data-available
djrtwo Dec 6, 2022
9839ed4
Merge pull request #3145 from terencechain/update-max-blobs
djrtwo Dec 6, 2022
37e504e
bound the maximum number of validators considered for withdrawals per…
ralexstokes Nov 11, 2022
a8449fa
Fix typo in BlobsSidecarsByRange v1
StefanBratanov Dec 12, 2022
3b34903
Merge pull request #3152 from StefanBratanov/fix_typo
djrtwo Dec 12, 2022
478b437
lint
djrtwo Dec 12, 2022
a062757
update mainnet preset value for sweep size
ralexstokes Dec 12, 2022
1f943f0
Update specs/capella/beacon-chain.md
djrtwo Dec 12, 2022
06d6d38
Merge pull request #3095 from ralexstokes/bound-withdrawals-sweep
djrtwo Dec 13, 2022
da3f5af
Test case naming clean up (#3143)
hwwhww Dec 13, 2022
c59b06c
Merge branch 'dev' into sf-epochoverrides
hwwhww Dec 13, 2022
19c38db
Add tests to test sync aggregate's order of operation
hwwhww Dec 13, 2022
2ac06c1
Update G2 trusted setup length to 65
hwwhww Dec 13, 2022
666a902
Add EIP4844 support
etan-status Dec 13, 2022
e9a7a6d
Merge pull request #3126 from etan-status/el-rlp
hwwhww Dec 13, 2022
dc17b1e
Merge pull request #3107 from etan-status/sf-epochoverrides
hwwhww Dec 13, 2022
26605ac
Fix some nits in eip4844 specs
jtraglia Dec 13, 2022
224b0f2
Add missing qoute
jtraglia Dec 13, 2022
a57e156
Merge pull request #3158 from jtraglia/fix-eip4844-spec-nits
hwwhww Dec 14, 2022
c7e102a
PR feedback from @djrtwo and change the duplicate sync committee prec…
hwwhww Dec 14, 2022
e467ab9
clarify that z should not be in the domain
kevaundray Dec 14, 2022
991f817
Merge pull request #3157 from ethereum/balance-op
djrtwo Dec 14, 2022
f7187a6
Merge pull request #3156 from ethereum/kzg-trusted-setup
djrtwo Dec 14, 2022
05c2eb8
Merge pull request #3159 from kevaundray/patch-3
asn-d6 Dec 14, 2022
302f54b
bump version.txt
djrtwo Dec 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ install_test:
# Testing against `minimal` config by default
test: pyspec
. venv/bin/activate; cd $(PY_SPEC_DIR); \
python3 -m pytest -n 4 --disable-bls --cov=eth2spec.phase0.minimal --cov=eth2spec.altair.minimal --cov=eth2spec.bellatrix.minimal --cov=eth2spec.capella.minimal --cov-report="html:$(COV_HTML_OUT)" --cov-branch eth2spec
python3 -m pytest -n 4 --disable-bls --cov=eth2spec.phase0.minimal --cov=eth2spec.altair.minimal --cov=eth2spec.bellatrix.minimal --cov=eth2spec.capella.minimal --cov=eth2spec.eip4844.minimal --cov-report="html:$(COV_HTML_OUT)" --cov-branch eth2spec

# Testing against `minimal` config by default
find_test: pyspec
. venv/bin/activate; cd $(PY_SPEC_DIR); \
python3 -m pytest -k=$(K) --disable-bls --cov=eth2spec.phase0.minimal --cov=eth2spec.altair.minimal --cov=eth2spec.bellatrix.minimal --cov=eth2spec.capella.minimal --cov-report="html:$(COV_HTML_OUT)" --cov-branch eth2spec
python3 -m pytest -k=$(K) --disable-bls --cov=eth2spec.phase0.minimal --cov=eth2spec.altair.minimal --cov=eth2spec.bellatrix.minimal --cov=eth2spec.capella.minimal --cov=eth2spec.eip4844.minimal --cov-report="html:$(COV_HTML_OUT)" --cov-branch eth2spec

citest: pyspec
mkdir -p $(TEST_REPORT_DIR);
Expand Down Expand Up @@ -142,8 +142,8 @@ codespell:
lint: pyspec
. venv/bin/activate; cd $(PY_SPEC_DIR); \
flake8 --config $(LINTER_CONFIG_FILE) ./eth2spec \
&& pylint --disable=all --enable unused-argument ./eth2spec/phase0 ./eth2spec/altair ./eth2spec/bellatrix ./eth2spec/capella \
&& mypy --config-file $(LINTER_CONFIG_FILE) -p eth2spec.phase0 -p eth2spec.altair -p eth2spec.bellatrix -p eth2spec.capella
&& pylint --rcfile $(LINTER_CONFIG_FILE) ./eth2spec/phase0 ./eth2spec/altair ./eth2spec/bellatrix ./eth2spec/capella ./eth2spec/eip4844 \
&& mypy --config-file $(LINTER_CONFIG_FILE) -p eth2spec.phase0 -p eth2spec.altair -p eth2spec.bellatrix -p eth2spec.capella -p eth2spec.eip4844

lint_generators: pyspec
. venv/bin/activate; cd $(TEST_GENERATORS_DIR); \
Expand Down Expand Up @@ -202,8 +202,8 @@ gen_kzg_setups:
if ! test -d venv; then python3 -m venv venv; fi; \
. venv/bin/activate; \
pip3 install -r requirements.txt; \
python3 ./gen_kzg_trusted_setups.py --secret=1337 --length=4 --output-dir ${CURRENT_DIR}/presets/minimal/trusted_setups; \
python3 ./gen_kzg_trusted_setups.py --secret=1337 --length=4096 --output-dir ${CURRENT_DIR}/presets/mainnet/trusted_setups
python3 ./gen_kzg_trusted_setups.py --secret=1337 --g1-length=4 --g2-length=65 --output-dir ${CURRENT_DIR}/presets/minimal/trusted_setups; \
python3 ./gen_kzg_trusted_setups.py --secret=1337 --g1-length=4096 --g2-length=65 --output-dir ${CURRENT_DIR}/presets/mainnet/trusted_setups

# For any generator, build it using the run_generator function.
# (creation of output dir is a dependency)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Features are researched and developed in parallel, and then consolidated into se
### In-development Specifications
| Code Name or Topic | Specs | Notes |
| - | - | - |
| Capella (tentative) | <ul><li>Core</li><ul><li>[Beacon chain changes](specs/capella/beacon-chain.md)</li><li>[Capella fork](specs/capella/fork.md)</li></ul><li>Additions</li><ul><li>[Validator additions](specs/capella/validator.md)</li></ul></ul> |
| Capella (tentative) | <ul><li>Core</li><ul><li>[Beacon chain changes](specs/capella/beacon-chain.md)</li><li>[Capella fork](specs/capella/fork.md)</li></ul><li>Additions</li><ul><li>[Validator additions](specs/capella/validator.md)</li><li>[P2P networking](specs/capella/p2p-interface.md)</li></ul></ul> |
| EIP4844 (tentative) | <ul><li>Core</li><ul><li>[Beacon Chain changes](specs/eip4844/beacon-chain.md)</li><li>[EIP-4844 fork](specs/eip4844/fork.md)</li><li>[Polynomial commitments](specs/eip4844/polynomial-commitments.md)</li></ul><li>Additions</li><ul><li>[Honest validator guide changes](specs/eip4844/validator.md)</li><li>[P2P networking](specs/eip4844/p2p-interface.md)</li></ul></ul> |
| Sharding (outdated) | <ul><li>Core</li><ul><li>[Beacon Chain changes](specs/sharding/beacon-chain.md)</li></ul><li>Additions</li><ul><li>[P2P networking](specs/sharding/p2p-interface.md)</li></ul></ul> |
| Custody Game (outdated) | <ul><li>Core</li><ul><li>[Beacon Chain changes](specs/custody_game/beacon-chain.md)</li></ul><li>Additions</li><ul><li>[Honest validator guide changes](specs/custody_game/validator.md)</li></ul></ul> | Dependent on sharding |
Expand Down
5 changes: 5 additions & 0 deletions linter.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ warn_unused_configs = True
warn_redundant_casts = True

ignore_missing_imports = True

# pylint
[MESSAGES CONTROL]
disable = all
enable = unused-argument
5 changes: 5 additions & 0 deletions presets/mainnet/capella.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ MAX_BLS_TO_EXECUTION_CHANGES: 16
# ---------------------------------------------------------------
# 2**4 (= 16) withdrawals
MAX_WITHDRAWALS_PER_PAYLOAD: 16

# Withdrawals processing
# ---------------------------------------------------------------
# 2**14 (= 16384) validators
MAX_VALIDATORS_PER_WITHDRAWALS_SWEEP: 16384
4 changes: 2 additions & 2 deletions presets/mainnet/eip4844.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# ---------------------------------------------------------------
# `uint64(4096)`
FIELD_ELEMENTS_PER_BLOB: 4096
# `uint64(2**4)` (= 16)
MAX_BLOBS_PER_BLOCK: 16
# `uint64(2**2)` (= 4)
MAX_BLOBS_PER_BLOCK: 4
2 changes: 1 addition & 1 deletion presets/mainnet/trusted_setups/testing_trusted_setups.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions presets/minimal/capella.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ MAX_BLS_TO_EXECUTION_CHANGES: 16
# ---------------------------------------------------------------
# [customized] 2**2 (= 4)
MAX_WITHDRAWALS_PER_PAYLOAD: 4

# Withdrawals processing
# ---------------------------------------------------------------
# [customized] 2**4 (= 16) validators
MAX_VALIDATORS_PER_WITHDRAWALS_SWEEP: 16
4 changes: 2 additions & 2 deletions presets/minimal/eip4844.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# ---------------------------------------------------------------
# [customized]
FIELD_ELEMENTS_PER_BLOB: 4
# `uint64(2**4)` (= 16)
MAX_BLOBS_PER_BLOCK: 16
# `uint64(2**2)` (= 4)
MAX_BLOBS_PER_BLOCK: 4