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

[Merged by Bors] - [Altair] Sync committee pools #2321

Closed
wants to merge 222 commits into from
Closed
Show file tree
Hide file tree
Changes from 176 commits
Commits
Show all changes
222 commits
Select commit Hold shift + click to select a range
2c52794
Start Altair refactor
michaelsproul Mar 23, 2021
bb397c5
Add AltairConfig
michaelsproul Mar 23, 2021
937a19a
Towards SSZ tests passing
michaelsproul Mar 24, 2021
b199b25
Generate as_base/as_altair with superstruct
michaelsproul Mar 25, 2021
a4d3e70
Most SSZ static tests passing
michaelsproul Mar 25, 2021
ca6bbf9
justification_and_finalization changes
realbigsean Mar 25, 2021
a5c8990
refactor to match eth2 spec, and fix epoch processing EF tests
realbigsean Mar 25, 2021
6585c9d
Merge branch 'consensus-spec-tests' of https://github.com/realbigsean…
realbigsean Mar 25, 2021
20181b7
Make SignedBeaconBlock a superstruct
michaelsproul Mar 26, 2021
3283abc
Merge remote-tracking branch 'origin/unstable' into altair
michaelsproul Mar 26, 2021
1449230
Fix ef_tests for SBB change
michaelsproul Mar 26, 2021
5090cf4
refactors
realbigsean Mar 26, 2021
a0fa7af
Merge branch 'altair' of https://github.com/sigp/lighthouse into alta…
realbigsean Mar 26, 2021
4895348
refactor justification and finalization, begin altair rewards and pen…
realbigsean Mar 27, 2021
9ab858a
get rewards and penalties working for altair
realbigsean Mar 28, 2021
060e3d4
fix some imports
realbigsean Mar 28, 2021
d5cf7a8
Implement basic sync committee functions
michaelsproul Mar 31, 2021
e470fd4
Merge remote-tracking branch 'sean/altair-process-epoch' into altair
michaelsproul Mar 31, 2021
746e99b
Implement process_sync_committee
michaelsproul Mar 31, 2021
3b00f83
Update EF operation tests incl sync agg
michaelsproul Apr 1, 2021
b9f32e0
small refactors
realbigsean Apr 6, 2021
3a364d9
Update attestation/deposit processing
michaelsproul Apr 6, 2021
f68738e
Implement `upgrade_to_altair`, genesis init test
michaelsproul Apr 6, 2021
1815024
Merge branch 'altair' of https://github.com/sigp/lighthouse into more…
realbigsean Apr 6, 2021
84c0441
fix slashings and implement sync committee processing
realbigsean Apr 6, 2021
5c63dcd
refactor common epoch processing methods
realbigsean Apr 6, 2021
97106d4
delete unused imports
realbigsean Apr 6, 2021
4cffdcb
Fix typo in sync_committee_updates
michaelsproul Apr 7, 2021
9ac6850
Update to v1.1.0-alpha.3
michaelsproul Apr 7, 2021
8ffeb33
Fix remaining EF tests/handlers!
michaelsproul Apr 7, 2021
d5f19dc
Fix beacon chain tests non-altair (#2305)
realbigsean Apr 13, 2021
254bd66
Use RefMut
michaelsproul Apr 13, 2021
e873ad9
Reset Cargo.lock to "stable" style
michaelsproul Apr 13, 2021
458828f
Tidy block tree hash
michaelsproul Apr 13, 2021
ace7c45
Merge remote-tracking branch 'origin/unstable' into altair
michaelsproul Apr 13, 2021
a256b06
Temporarily hardcode base fork in op pool
michaelsproul Apr 13, 2021
0cdd19c
Update block proposal & op pool
michaelsproul Apr 14, 2021
1a4145d
Fix bounds check on compute_sync_committee_indices
michaelsproul Apr 14, 2021
d6f2acc
Tidy phase0 op pool
michaelsproul Apr 14, 2021
bfc70cf
Remove global fork schedule (#2314)
michaelsproul Apr 19, 2021
663a9ef
Use superstruct partial getters
michaelsproul Apr 19, 2021
27f41c6
Lots of test refactors (#2315)
realbigsean Apr 20, 2021
610e92b
More test cleanups and fixes
michaelsproul Apr 20, 2021
e490f3c
Use `upgrade_to_altair` in state transition
michaelsproul Apr 20, 2021
af9e2d8
More test fixes
michaelsproul Apr 20, 2021
5316b2a
Begin adding pools related to sync committees
realbigsean Apr 20, 2021
98e26d5
Add fork upgrade test, fix EF spec test
michaelsproul Apr 21, 2021
8158ef3
Merge branch 'altair' of https://github.com/sigp/lighthouse into sync…
realbigsean Apr 21, 2021
54ae49b
Sync committee pool refactors, attempt to get ssz tests working
realbigsean Apr 21, 2021
7395bf0
Revert BitVector change
realbigsean Apr 21, 2021
92d3c33
Update lcli and local testnet scripts
michaelsproul Apr 22, 2021
473a5a9
Fix `SyncCommitteeContribution` bit vector length, fix `SyncCommittee…
realbigsean Apr 22, 2021
2bb1021
update docs and add tests for sync committee operation pool
realbigsean Apr 22, 2021
f8b31f6
More test updates, release-tests might pass now...
michaelsproul Apr 23, 2021
e92e61b
Nuke old store benchmark
michaelsproul Apr 23, 2021
14a15ca
Fix arbitrary instances
michaelsproul Apr 23, 2021
0ded5cb
Participation bits fixes, clippy fixes
michaelsproul Apr 23, 2021
c85e464
Merge branch 'altair' of https://github.com/sigp/lighthouse into sync…
realbigsean Apr 26, 2021
0428acf
add BitVector intersection and union tests
realbigsean Apr 26, 2021
9882bbb
Disable indexing in types & state processing
michaelsproul Apr 27, 2021
5176655
Delete tree hash and state proc benchmarks
michaelsproul Apr 27, 2021
e4b2570
Disable aggressive lints in tests
michaelsproul Apr 27, 2021
eea1708
Appease udeps
michaelsproul Apr 27, 2021
fa3f6f7
Fix the RPC tests without hacks
michaelsproul Apr 27, 2021
a1d9182
Fix double update in github cargo fmt
michaelsproul Apr 27, 2021
d0f63e0
Use published superstruct
michaelsproul Apr 27, 2021
d1d3cba
Try splitting beacon_chain tests out of CI
michaelsproul Apr 28, 2021
d32cc3d
Fix cargo-fmt --all
michaelsproul Apr 28, 2021
95ca4ed
Abstract over fork in beacon_chain tests
michaelsproul Apr 29, 2021
0cf1834
Fix clippy
michaelsproul Apr 29, 2021
a549472
Merge remote-tracking branch 'origin/unstable' into altair
michaelsproul Apr 29, 2021
c89de3b
Maintain backwards compatibility with std config
michaelsproul Apr 30, 2021
bc719f7
Sync committee signature verification work
realbigsean May 5, 2021
d956db5
Add an `Arc` to the `current_sync_committee` field, refactor `sync_co…
realbigsean May 6, 2021
0d84cb6
Clean up imports
realbigsean May 6, 2021
bfc3383
Merge branch 'altair' of https://github.com/sigp/lighthouse into sync…
realbigsean May 6, 2021
6c0e4c4
Move `sync_committee_base_epoch` to `Epoch`
realbigsean May 7, 2021
8210af5
Fmt and fix some lints
realbigsean May 7, 2021
dfcf16e
Add tests for new observation pools
realbigsean May 7, 2021
f93c256
Some op pool work
realbigsean May 7, 2021
f7b82ae
Provide clarity about BeaconState leaf count (#2339)
paulhauner May 10, 2021
1a9c899
Remove sync committee indices cache
michaelsproul May 11, 2021
6705660
- Add beacon harness methods for sync signature create
realbigsean May 11, 2021
abf974c
Merge branch 'altair' of https://github.com/sigp/lighthouse into sync…
realbigsean May 11, 2021
3c12cd6
merge with `altair`
realbigsean May 11, 2021
6d01530
Merge remote-tracking branch 'origin/unstable' into altair
michaelsproul May 13, 2021
967d680
Add tests for decoding state/block with bad slot (#2341)
paulhauner May 14, 2021
ff0d992
Tidy SyncCommittee types
michaelsproul May 17, 2021
14002e9
Merge remote-tracking branch 'origin/altair' into sync-committee-pools
michaelsproul May 17, 2021
2daedc8
More sync committee type cleanups/fallout
michaelsproul May 17, 2021
a6acfbb
Merge pull request #13 from michaelsproul/sync-committee-pools
realbigsean May 17, 2021
e7268f7
merge with `altair`
realbigsean May 17, 2021
0b07c94
merge with `altair`
realbigsean May 17, 2021
e9820d8
Some sync verification fixes and test progress
realbigsean May 18, 2021
ab3cfc0
Add hack to allow harness with altair spec
paulhauner May 19, 2021
4500cb9
Add test for applying base block to altair chain
paulhauner May 19, 2021
70a2fc0
Use graffiti len more consistently (#2348)
paulhauner May 19, 2021
28aa869
Replace a test deleted during Altair update (#2351)
paulhauner May 19, 2021
6c16333
Apply comment fixes from Paul
michaelsproul May 19, 2021
297843d
Add fork_name methods
paulhauner May 19, 2021
f757617
Add fork checks and tests
paulhauner May 19, 2021
7ca7af8
Add tests for applying altair to base
paulhauner May 19, 2021
368543a
Merge branch 'altair' of https://github.com/sigp/lighthouse into sync…
realbigsean May 19, 2021
be88e5d
Allow providing a custom spec to test harness
paulhauner May 20, 2021
dfb4c4e
Fix compile error in network
paulhauner May 20, 2021
3a4cca0
Add tests for slot, epoch processing
paulhauner May 20, 2021
a1feba1
Fix clippy lints
paulhauner May 20, 2021
c661d54
Fix release test
paulhauner May 20, 2021
8778b43
Merge branch 'altair-base-test' of https://github.com/paulhauner/ligh…
realbigsean May 20, 2021
729fe50
Finish op pool sync committee logic, add a couple tests.
realbigsean May 20, 2021
8377565
Avoid slicing in PartialBeaconState (#2361)
paulhauner May 21, 2021
6f6eebf
[Altair] Make anonymous var-length SSZ decoding explicit (#2362)
paulhauner May 21, 2021
e46448b
Merge branch 'altair' of https://github.com/sigp/lighthouse into sync…
realbigsean May 21, 2021
27f671b
Use macros for naive aggregation pool tests.
realbigsean May 21, 2021
17a2fe7
small updates
realbigsean May 21, 2021
76d31cd
[Altair] Rewards tests (#2349)
michaelsproul May 24, 2021
5cb0211
[Altair] Remove duplicate vars, panic on `u64::pow` overflow (#2350)
paulhauner May 24, 2021
06c46f4
[Altair] Applying Base block to Altair chain (#2353)
paulhauner May 24, 2021
97d1807
[Altair] Add check for missed EF tests (#2346)
paulhauner May 24, 2021
81bd93f
Fix beacon chain harness bug in `make_sync_contributions`. Key the `O…
realbigsean May 24, 2021
a217a85
Merge branch 'altair' of https://github.com/sigp/lighthouse into sync…
realbigsean May 24, 2021
3db5576
Accidentally removed a couple constants while merging
realbigsean May 24, 2021
9739552
fix a typo in a const, and a bunch of lints
realbigsean May 24, 2021
dba9dca
Merge branch 'unstable' of github.com:sigp/lighthouse into altair-mer…
paulhauner May 24, 2021
e324310
Merge pull request #2365 from paulhauner/altair-merge-unstable
michaelsproul May 25, 2021
443793b
Restore lost CI YAML
michaelsproul May 25, 2021
6415962
Address review comments
michaelsproul May 25, 2021
49b79b8
Update comment
michaelsproul May 25, 2021
338a2d1
Return an error if total bal is 0 (#2366)
paulhauner May 25, 2021
3789a72
Fix and test selection proof `verify`
michaelsproul May 25, 2021
e9bec20
Fix get_sync_aggregate
michaelsproul May 25, 2021
7cac63d
update op pool tests to correctly use `get_sync_aggregate`
realbigsean May 25, 2021
dc2227a
Minor changes to justification code (#2367)
paulhauner May 25, 2021
7d18521
[Altair] Optimization for `get_unslashed_participating_indices` (#2369)
paulhauner May 26, 2021
b606cc8
Add sync contribution aggregation tests to the op pool and fix an op …
realbigsean May 26, 2021
3a6f255
Only advance state as necessary in sync committee verification tests.…
realbigsean May 27, 2021
851b624
Delete `verify_sync_contributions.rs` and fix a comment.
realbigsean May 27, 2021
bf6324e
Remove `Arc` from `current_sync_committee`
realbigsean May 27, 2021
276f705
Merge branch 'altair' of https://github.com/sigp/lighthouse into sync…
realbigsean May 27, 2021
ef73f5a
Add `max_capacity` to `ObservedAggregates` constructor
realbigsean May 27, 2021
2a7c2b3
Update consensus code to v1.1.0-alpha.6
michaelsproul May 28, 2021
5692ff1
Make the `SyncAggregateId` a fixed-length struct
realbigsean May 28, 2021
5756c2d
Add metrics and update docs
realbigsean May 28, 2021
cb9a7a2
Ripple spec updates
michaelsproul May 31, 2021
46b4619
Revert "Remove `Arc` from `current_sync_committee`"
realbigsean Jun 1, 2021
b6fdda0
Merge branch 'sync-committee-pools' of https://github.com/realbigsean…
realbigsean Jun 1, 2021
633c1bb
fix some pool tests
realbigsean Jun 1, 2021
dfff140
Updates to some docs, general cleanup
realbigsean Jun 1, 2021
65c22b7
Fix default capacity for sync committee observed caches
realbigsean Jun 1, 2021
b4a71c7
Fix default capacity for sync committee observed caches
realbigsean Jun 1, 2021
d4ec7d0
Fix default capacity for sync committee observed caches
realbigsean Jun 1, 2021
16e9f32
Fix more docs and metrics
realbigsean Jun 1, 2021
59a9f3a
Remove `is_valid` methods from `SignedAggregateAndProof` and `SignedC…
realbigsean Jun 1, 2021
3b7b295
remove outdated `FIXME`
realbigsean Jun 1, 2021
bb5d3c8
Fix docs
realbigsean Jun 1, 2021
cf7e7b7
Fix docs
realbigsean Jun 1, 2021
ee8dea8
Implement preset <> config distinction
michaelsproul Jun 2, 2021
b602c90
Update confusing name `SyncCommitteeSubnetSize` -> `SyncSubcommitteeS…
realbigsean Jun 2, 2021
06d2ff2
Merge branch 'altair-latest-spec' of https://github.com/michaelsproul…
realbigsean Jun 2, 2021
d188557
Updates for latest spec merge
realbigsean Jun 2, 2021
7a9b2ac
update client for `lighthouse/spec` endpoint
realbigsean Jun 2, 2021
2238539
Add back accidentally deleted import
realbigsean Jun 2, 2021
897fb7c
Return ConfigAndPreset from VC API
michaelsproul Jun 3, 2021
f08e96f
Don't panic if there aren't any aggregators
michaelsproul Jun 3, 2021
9940cc8
Check state root in transition tests
michaelsproul Jun 3, 2021
c0b20fb
Fix clippy
michaelsproul Jun 3, 2021
f532a92
Fix Pyrmont & Prater configs. Delete Toledo.
michaelsproul Jun 3, 2021
5a556b3
Add compatibility shim for /config/spec
michaelsproul Jun 3, 2021
fa36f34
Merge branch 'altair-latest-spec' of https://github.com/michaelsproul…
realbigsean Jun 3, 2021
d756b1d
Revert "update client for `lighthouse/spec` endpoint"
realbigsean Jun 3, 2021
58a7258
- Update `SYNC_COMMITTEE_SUBNET_COUNT` to alpha.6
realbigsean Jun 3, 2021
6d4327a
- Update `NaiveAggregationPool`'s default capacity so it is specific …
realbigsean Jun 3, 2021
bd31c0a
fix `observed_aggregates` tests
realbigsean Jun 3, 2021
bf518af
PR updates
realbigsean Jun 7, 2021
e4b7d14
fix op pool tests
realbigsean Jun 8, 2021
0a2d57f
Minor cleanups
michaelsproul Jun 8, 2021
bc68a2d
Merge pull request #2373 from michaelsproul/altair-latest-spec
michaelsproul Jun 8, 2021
aa192fb
Calculate `SyncAggregate` on demand
realbigsean Jun 8, 2021
0c445ee
Op pool migration + superstruct
realbigsean Jun 9, 2021
c0ec45c
Fix op pool test
realbigsean Jun 10, 2021
99bffdb
Update to spec v1.1.0-alpha.7
michaelsproul Jun 11, 2021
41414d1
- Fix sync committee verification on slot prior to sync committee per…
realbigsean Jun 11, 2021
b624253
Refactor how we retrieve `PublicKey` for sync signature verification
realbigsean Jun 14, 2021
bb7e9cf
Key `observed_contributors` on `SlotSubcommitteeIndex`
realbigsean Jun 14, 2021
17a0431
Update mainnet preset YAML
michaelsproul Jun 15, 2021
2ee4dc5
Add tests for sync committee verification at slot before sync committ…
realbigsean Jun 15, 2021
04cadec
fix op pool tests
realbigsean Jun 15, 2021
5b80cb9
- Make `SyncSubnetId` a required argument for `verify_sync_signature_…
realbigsean Jun 16, 2021
3227651
fix sync committee verification test macro
realbigsean Jun 16, 2021
c962b88
Merge pull request #2405 from sigp/altair-alpha.7
michaelsproul Jun 16, 2021
8a13d6f
Merge remote-tracking branch 'origin/unstable' into altair
michaelsproul Jun 17, 2021
ffba057
Fix beacon_chain test
michaelsproul Jun 17, 2021
47d4b37
rust 1.53.0 updates
realbigsean Jun 17, 2021
28f668c
add recursion limit to `simulator` crate
realbigsean Jun 17, 2021
bd7f9d9
cargo fmt
realbigsean Jun 17, 2021
f43e710
Merge branch 'altair' of https://github.com/sigp/lighthouse into sync…
realbigsean Jun 17, 2021
98f7a03
`SyncCommitteSignature` -> `SyncCommitteeMessage`
realbigsean Jun 17, 2021
5d4cf0b
Merge branch 'rust-1.53.0-lints' of https://github.com/realbigsean/li…
realbigsean Jun 17, 2021
f56ea57
Updates related to merge with `unstable`
realbigsean Jun 17, 2021
24e0d1d
More updates related to `SyncCommitteMessage` refactor
realbigsean Jun 17, 2021
f32d14e
Couple more `unstable` merge fixes
realbigsean Jun 17, 2021
f14c5e5
Fix `SyncAggregate` field name
realbigsean Jun 17, 2021
186125e
fix the expected error in the sync contribution verification test at …
realbigsean Jun 22, 2021
0a4c4f5
Merge remote-tracking branch 'origin/unstable' into altair
michaelsproul Jun 23, 2021
c878ff5
Updates related to merge with `unstable`
realbigsean Jun 17, 2021
95e3069
Couple more `unstable` merge fixes
realbigsean Jun 17, 2021
ffd2b75
Import some relevant funcs from the VC
michaelsproul Jun 17, 2021
7481e9c
Fix issues with skip slots at fork boundaries
michaelsproul Jun 29, 2021
0ca1662
Fix clippy again
michaelsproul Jun 29, 2021
8386024
Merge remote-tracking branch 'origin/altair' into sync-committee-pools
michaelsproul Jun 29, 2021
ad32be2
alpha.8 updates
realbigsean Jun 30, 2021
e377395
Merge remote-tracking branch 'origin/unstable' into altair
michaelsproul Jul 6, 2021
5d36a6c
Merge remote-tracking branch 'origin/unstable' into altair
michaelsproul Jul 6, 2021
a40826b
Merge remote-tracking branch 'origin/unstable' into altair
michaelsproul Jul 9, 2021
c555e67
Merge branch 'altair' of https://github.com/sigp/lighthouse into sync…
realbigsean Jul 12, 2021
a54bcc5
Merge branch 'unstable' of https://github.com/sigp/lighthouse into sy…
realbigsean Jul 12, 2021
853e984
remove duplicate function from merge
realbigsean Jul 12, 2021
6e2e193
Update EF tests tag from alpha.7 to alpha.8
realbigsean Jul 12, 2021
a2e39fc
remove duplicate import from merge
realbigsean Jul 12, 2021
22da623
fix incorrect method name and update test to ensure off-by-one is inv…
realbigsean Jul 13, 2021
86ba5ce
Merge remote-tracking branch 'origin/unstable' into sync-committee-pools
michaelsproul Jul 15, 2021
8e07e1a
Fix conflict in tests
michaelsproul Jul 15, 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
14 changes: 12 additions & 2 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Get latest version of stable Rust
run: rustup update stable
- name: Check formatting with cargo fmt
Expand Down Expand Up @@ -58,6 +56,18 @@ jobs:
run: choco install -y make
- name: Run tests in release
run: make test-release
beacon-chain-tests:
name: beacon-chain-tests
runs-on: ubuntu-latest
needs: cargo-fmt
steps:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Run beacon_chain tests for base hard fork
run: make test-beacon-chain-base
- name: Run beacon_chain tests for Altair hard fork
run: make test-beacon-chain-altair
debug-tests-ubuntu:
name: debug-tests-ubuntu
runs-on: ubuntu-latest
Expand Down
92 changes: 82 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.50.0 AS builder
FROM rust:1.52.1 AS builder
RUN apt-get update && apt-get install -y cmake
COPY . lighthouse
ARG PORTABLE
Expand Down
17 changes: 13 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.PHONY: tests

EF_TESTS = "testing/ef_tests"
BEACON_CHAIN_CRATE = "beacon_node/beacon_chain"
STATE_TRANSITION_VECTORS = "testing/state_transition_vectors"
GIT_TAG := $(shell git describe --tags --candidates 1)
BIN_DIR = "bin"
Expand Down Expand Up @@ -79,30 +80,38 @@ build-release-tarballs:
# Runs the full workspace tests in **release**, without downloading any additional
# test vectors.
test-release:
cargo test --all --release --exclude ef_tests
cargo test --workspace --release --exclude ef_tests --exclude beacon_chain

# Runs the full workspace tests in **debug**, without downloading any additional test
# vectors.
test-debug:
cargo test --all --exclude ef_tests
cargo test --workspace --exclude ef_tests --exclude beacon_chain

# Runs cargo-fmt (linter).
cargo-fmt:
cargo fmt --all -- --check

# Typechecks benchmark code
check-benches:
cargo check --all --benches
cargo check --workspace --benches

# Typechecks consensus code *without* allowing deprecated legacy arithmetic
check-consensus:
cargo check --manifest-path=consensus/state_processing/Cargo.toml --no-default-features

# Runs only the ef-test vectors.
run-ef-tests:
rm -rf $(EF_TESTS)/.accessed_file_log.txt
cargo test --release --manifest-path=$(EF_TESTS)/Cargo.toml --features "ef_tests"
cargo test --release --manifest-path=$(EF_TESTS)/Cargo.toml --features "ef_tests,fake_crypto"
cargo test --release --manifest-path=$(EF_TESTS)/Cargo.toml --features "ef_tests,milagro"
./$(EF_TESTS)/check_all_files_accessed.py $(EF_TESTS)/.accessed_file_log.txt $(EF_TESTS)/eth2.0-spec-tests

# Run the tests in the `beacon_chain` crate.
test-beacon-chain: test-beacon-chain-base test-beacon-chain-altair

test-beacon-chain-%:
env FORK_NAME=$* cargo test --release --features fork_from_env --manifest-path=$(BEACON_CHAIN_CRATE)/Cargo.toml

# Runs only the tests/state_transition_vectors tests.
run-state-transition-tests:
Expand All @@ -121,7 +130,7 @@ test-full: cargo-fmt test-release test-debug test-ef
# Lints the code for bad style and potentially unsafe arithmetic using Clippy.
# Clippy lints are opt-in per-crate for now. By default, everything is allowed except for performance and correctness lints.
lint:
cargo clippy --all --tests -- \
cargo clippy --workspace --tests -- \
-D warnings \
-A clippy::from-over-into \
-A clippy::upper-case-acronyms \
Expand Down
2 changes: 1 addition & 1 deletion account_manager/src/validator/exit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async fn publish_voluntary_exit<E: EthSpec>(
.beacon_state::<E>()
.as_ref()
.expect("network should have valid genesis state")
.genesis_validators_root;
.genesis_validators_root();

// Verify that the beacon node and validator being exited are on the same network.
if genesis_data.genesis_validators_root != testnet_genesis_root {
Expand Down
2 changes: 1 addition & 1 deletion account_manager/src/validator/slashing_protection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn cli_run<T: EthSpec>(

let genesis_validators_root = testnet_config
.beacon_state::<T>()
.map(|state: BeaconState<T>| state.genesis_validators_root)
.map(|state: BeaconState<T>| state.genesis_validators_root())
.map_err(|e| {
format!(
"Unable to get genesis state, has genesis occurred? Detail: {:?}",
Expand Down
5 changes: 3 additions & 2 deletions beacon_node/beacon_chain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ default = ["participation_metrics"]
write_ssz_files = [] # Writes debugging .ssz files to /tmp during block processing.
participation_metrics = [] # Exposes validator participation metrics to Prometheus.
test_logger = [] # Print log output to stderr when running tests instead of dropping it
fork_from_env = [] # Initialise the harness chain spec from the FORK_NAME env variable

[dev-dependencies]
int_to_bytes = { path = "../../consensus/int_to_bytes" }
maplit = "1.0.2"
environment = { path = "../../lighthouse/environment" }

Expand Down Expand Up @@ -45,6 +45,7 @@ eth1 = { path = "../eth1" }
futures = "0.3.7"
genesis = { path = "../genesis" }
integer-sqrt = "0.1.5"
int_to_bytes = { path = "../../consensus/int_to_bytes" }
rand = "0.7.3"
rand_core = "0.6.2"
proto_array = { path = "../../consensus/proto_array" }
Expand All @@ -56,7 +57,7 @@ safe_arith = { path = "../../consensus/safe_arith" }
fork_choice = { path = "../../consensus/fork_choice" }
task_executor = { path = "../../common/task_executor" }
derivative = "2.1.1"
itertools = "0.9.0"
itertools = "0.10.0"
regex = "1.3.9"
exit-future = "0.2.0"
slasher = { path = "../../slasher" }
Expand Down
Loading