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

Implement Electra devnet-1 changes #5937

Merged
merged 361 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
361 commits
Select commit Hold shift + click to select a range
b8dc628
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 11, 2024
f9e0b4e
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthou…
realbigsean May 11, 2024
7a0057b
Merge branch 'p2p-electra' of https://github.com/sigp/lighthouse into…
realbigsean May 11, 2024
d7cc47c
fix genesis from eth1 for electra
realbigsean May 12, 2024
3b1fb0a
Fix Electra Fork Choice Tests (#5764)
ethDreamer May 12, 2024
8d4a921
add new operation tests
realbigsean May 12, 2024
6b7b7aa
Fix Electra Fork Choice Tests (#5764)
ethDreamer May 12, 2024
af7ba6f
Fix Electra Fork Choice Tests (#5764)
ethDreamer May 12, 2024
aaf8e50
Fix Electra Fork Choice Tests (#5764)
ethDreamer May 12, 2024
89ef043
add epoch processing new tests
realbigsean May 12, 2024
c900a88
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 12, 2024
97e88dd
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean May 12, 2024
67ba04e
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean May 12, 2024
179324b
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 12, 2024
f95c2dc
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthou…
realbigsean May 12, 2024
cbc01ad
Merge branch 'ef-tests-electra' of https://github.com/sigp/lighthouse…
realbigsean May 12, 2024
4cc926f
Merge branch 'p2p-electra' of https://github.com/sigp/lighthouse into…
realbigsean May 12, 2024
e061e18
fix ef test compilation
realbigsean May 12, 2024
c37a456
disable and enable ef test for epoch processing appropriately
realbigsean May 12, 2024
d781420
add consolidations to merkle calc for inclusion proof
realbigsean May 12, 2024
b7d983d
fix should_override_fc tests
ethDreamer May 12, 2024
87ec2e0
Merge branch 'ef-tests-electra' of https://github.com/sigp/lighthouse…
realbigsean May 12, 2024
2460a59
get ssz tests compiling
realbigsean May 12, 2024
4094d9a
ssz merkle validity for only deneb
realbigsean May 12, 2024
172353d
im dumb af
ethDreamer May 12, 2024
dff44b3
Merge remote-tracking branch 'upstream/ef-tests-electra' into ef-test…
ethDreamer May 12, 2024
affdccd
enable tests
realbigsean May 12, 2024
217fa9f
Fix Consolidation Sigs & Withdrawals
ethDreamer May 12, 2024
793764f
Merge pull request #5766 from ethDreamer/two_fixes
realbigsean May 12, 2024
c53d4ac
Merge branches 'block-processing-electra' and 'electra-epoch-proc' of…
realbigsean May 12, 2024
5f73d31
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean May 12, 2024
812b3d7
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 12, 2024
4240af9
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthou…
realbigsean May 12, 2024
caf0026
Merge branch 'p2p-electra' of https://github.com/sigp/lighthouse into…
realbigsean May 12, 2024
657887f
comment out consolidation operation ef tests until they are added
realbigsean May 12, 2024
9c33a6f
add signed consolidation ssz tests
realbigsean May 13, 2024
75f6f78
add as_iter to all List and Vector fields in the beacon state
realbigsean May 13, 2024
ac2e03b
remove dbg
realbigsean May 13, 2024
c680164
Send unagg attestation based on fork
pawanjay176 May 13, 2024
f3584e8
Merge branch 'beacon-api-electra' into p2p-electra
pawanjay176 May 13, 2024
cf0437b
Merge branch 'p2p-electra' into ef-tests-electra
pawanjay176 May 13, 2024
d9200a9
Fix Epoch Processing Consolidations
ethDreamer May 13, 2024
7e57ab3
Fix Final Spec Tests!
ethDreamer May 13, 2024
7f54906
Fix ser/de
pawanjay176 May 14, 2024
8468937
Merge branch 'electra-engine-api' into beacon-api-electra
pawanjay176 May 14, 2024
69738ce
Merge branch 'beacon-api-electra' into p2p-electra
pawanjay176 May 14, 2024
af0d601
Merge branch 'p2p-electra' into ef-tests-electra
pawanjay176 May 14, 2024
dfcce10
Subscribe to the correct subnets for electra attestations (#5782)
eserilev May 15, 2024
01dc321
cargo fmt
realbigsean May 15, 2024
f1fb033
Subscribe to the correct subnets for electra attestations (#5782)
eserilev May 15, 2024
2629393
cargo fmt
realbigsean May 15, 2024
8506fb0
Subscribe to the correct subnets for electra attestations (#5782)
eserilev May 15, 2024
ec055f4
cargo fmt
realbigsean May 15, 2024
4f0ecf2
Subscribe to the correct subnets for electra attestations (#5782)
eserilev May 15, 2024
227aa4b
cargo fmt
realbigsean May 15, 2024
fc15736
Subscribe to the correct subnets for electra attestations (#5782)
eserilev May 15, 2024
d8941d7
cargo fmt
realbigsean May 15, 2024
0c29896
Subscribe to the correct subnets for electra attestations (#5782)
eserilev May 15, 2024
210ad2f
cargo fmt
realbigsean May 15, 2024
79a5f25
Subscribe to the correct subnets for electra attestations (#5782)
eserilev May 15, 2024
a8088f1
cargo fmt
realbigsean May 15, 2024
8e537d1
update electra readiness with new endpoints
realbigsean May 15, 2024
37bcba2
don't block mev boost till genesis finalization
realbigsean May 15, 2024
a2c7838
Publish all aggregates
ethDreamer May 15, 2024
b5333b4
just one more check bro plz..
ethDreamer May 15, 2024
d197a19
Fix Bug In Block Processing with 0x02 Credentials
ethDreamer May 16, 2024
bafb5f0
fix slashing handling
realbigsean May 17, 2024
f9c50bc
Fix Bug In Block Processing with 0x02 Credentials
ethDreamer May 16, 2024
987abe0
Merge remote-tracking branch 'upstream/unstable'
ethDreamer May 24, 2024
82858bc
Send unagg attestation based on fork
pawanjay176 May 13, 2024
154b7a7
Publish all aggregates
ethDreamer May 15, 2024
bb734af
just one more check bro plz..
ethDreamer May 15, 2024
469296b
Merge pull request #5832 from ethDreamer/electra_attestation_changes_…
realbigsean May 24, 2024
3f169ef
Merge pull request #5835 from realbigsean/fix-validator-logic
realbigsean May 24, 2024
3e10e68
Merge pull request #5816 from realbigsean/electra-attestation-slashin…
realbigsean May 24, 2024
9440c36
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 24, 2024
57b6a9a
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean May 24, 2024
1aa410c
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean May 24, 2024
36a7b12
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 24, 2024
b33a343
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthou…
realbigsean May 24, 2024
759ad02
Merge branch 'p2p-electra' of https://github.com/sigp/lighthouse into…
realbigsean May 24, 2024
7192f00
Rename deploy block electra (#5853)
pawanjay176 May 28, 2024
aed25c4
fix: serde rename camle case for execution payload body (#5846)
mattsse May 28, 2024
72abfa4
Merge branch 'electra-engine-api' into beacon-api-electra
pawanjay176 May 28, 2024
4a8193e
Merge branch 'beacon-api-electra' into p2p-electra
pawanjay176 May 28, 2024
e943bda
Merge branch 'p2p-electra' into ef-tests-electra
pawanjay176 May 28, 2024
75432e1
Electra attestation changes rm decode impl (#5856)
ethDreamer May 30, 2024
e340998
Fix failing attestation tests and misc electra attestation cleanup (#…
eserilev May 30, 2024
b61d244
fix some todos (#5817)
realbigsean May 30, 2024
49de63f
Merge branch 'unstable' of https://github.com/sigp/lighthouse into el…
realbigsean May 31, 2024
29ed1c5
add consolidations to merkle calc for inclusion proof
realbigsean May 12, 2024
a647a36
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 31, 2024
4013944
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean May 31, 2024
7d3a5df
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean May 31, 2024
7a408b7
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 31, 2024
f4c7688
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthou…
realbigsean May 31, 2024
bd86762
Merge branch 'p2p-electra' of https://github.com/sigp/lighthouse into…
realbigsean May 31, 2024
f9d3545
Remove Duplicate KZG Commitment Merkle Proof Code (#5874)
ethDreamer Jun 1, 2024
77c630b
Merge branch 'unstable' of https://github.com/sigp/lighthouse into el…
realbigsean Jun 13, 2024
f25531d
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean Jun 13, 2024
772ab53
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean Jun 13, 2024
49db91b
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean Jun 13, 2024
c2c2baf
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean Jun 13, 2024
8a7662b
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthou…
realbigsean Jun 13, 2024
b21b108
fix compile
realbigsean Jun 13, 2024
8dc9f38
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean Jun 13, 2024
c43d1c2
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean Jun 13, 2024
f57fa87
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean Jun 13, 2024
a5ee0ed
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean Jun 13, 2024
9c9fc62
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthou…
realbigsean Jun 13, 2024
35e07eb
Fix slasher tests (#5906)
pawanjay176 Jun 14, 2024
d7f3c95
Update superstruct to 0.8
michaelsproul Jun 14, 2024
d5aa2d8
Merge remote-tracking branch 'origin/unstable' into electra_attestati…
michaelsproul Jun 14, 2024
c4f2284
Small cleanup in slasher tests
michaelsproul Jun 14, 2024
3ac3ddb
Clean up Electra observed aggregates (#5929)
michaelsproul Jun 17, 2024
1b908f5
move committee bits to the last index in attestation (#5924)
eserilev Jun 17, 2024
9a01b6b
Merge branch 'unstable' of https://github.com/sigp/lighthouse into el…
realbigsean Jun 17, 2024
d87541c
De-dup attestation constructor logic
dapplion Jun 17, 2024
dd0d5e2
Remove unwraps in Attestation construction
dapplion Jun 17, 2024
3ec21a2
Dedup match_attestation_data
dapplion Jun 17, 2024
795eff9
Remove outdated TODO
dapplion Jun 17, 2024
960f8c5
Use ForkName Ord in fork-choice tests
dapplion Jun 17, 2024
1d0e3f4
Use ForkName Ord in BeaconBlockBody
dapplion Jun 17, 2024
5acc052
Make to_electra not fallible
dapplion Jun 17, 2024
4f08f6e
Remove TestRandom impl for IndexedAttestation
dapplion Jun 17, 2024
f049285
Remove IndexedAttestation faulty Decode impl
dapplion Jun 17, 2024
5070ab2
Drop TestRandom impl
dapplion Jun 17, 2024
45d007a
Add PendingAttestationInElectra
dapplion Jun 17, 2024
9e84779
Indexed att on disk (#35)
realbigsean Jun 18, 2024
7af3f2e
add electra fork enabled fn to ForkName impl (#36)
eserilev Jun 18, 2024
2634a1f
Update common/eth2/src/types.rs
dapplion Jun 18, 2024
dec7cff
Dedup attestation constructor logic in attester cache
dapplion Jun 17, 2024
6a4d842
Use if let Ok for committee_bits
dapplion Jun 18, 2024
6f0b784
Dedup Attestation constructor code
dapplion Jun 18, 2024
444cd62
Diff reduction in tests
dapplion Jun 18, 2024
d264736
Fix beacon_chain tests
dapplion Jun 18, 2024
7521f97
Diff reduction
dapplion Jun 18, 2024
4d3edfe
Use Ord for ForkName in pubsub
dapplion Jun 18, 2024
7fce143
Resolve into_attestation_and_indices todo
dapplion Jun 18, 2024
4d4c268
Remove stale TODO
dapplion Jun 18, 2024
370d511
Fix beacon_chain tests
dapplion Jun 18, 2024
cbb7c5d
Test spec invariant
dapplion Jun 19, 2024
70a2d4d
Use electra_enabled in pubsub
dapplion Jun 19, 2024
9e6e76f
Remove get_indexed_attestation_from_signed_aggregate
dapplion Jun 19, 2024
a8d8989
Use ok_or instead of if let else
dapplion Jun 19, 2024
d67270f
committees are sorted
dapplion Jun 19, 2024
3977b92
remove dup method `get_indexed_attestation_from_committees`
realbigsean Jun 19, 2024
6e44832
Merge pull request #5940 from dapplion/electra_attestation_changes_li…
realbigsean Jun 19, 2024
afb9122
update default persisted op pool deserialization
realbigsean Jun 19, 2024
381bbab
ensure aggregate and proof uses serde untagged on ref
realbigsean Jun 19, 2024
0e2add2
Fork aware ssz static attestation tests
dapplion Jun 20, 2024
f85a124
Electra attestation changes from Lions review (#5971)
eserilev Jun 20, 2024
efb8a01
Merge branch 'unstable' of https://github.com/sigp/lighthouse into el…
realbigsean Jun 20, 2024
dd0aa8e
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean Jun 20, 2024
536c9f8
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean Jun 20, 2024
c276af6
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean Jun 20, 2024
af98e98
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean Jun 20, 2024
b25471c
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthou…
realbigsean Jun 20, 2024
40b7d8f
Merge branch 'ef-tests-electra' of https://github.com/sigp/lighthouse…
realbigsean Jun 20, 2024
09f48c5
Fix Compilation Break
ethDreamer Jun 20, 2024
68035eb
Merge pull request #5973 from ethDreamer/beacon-api-electra
realbigsean Jun 20, 2024
8683bf7
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthou…
realbigsean Jun 20, 2024
48f1f40
Merge branch 'ef-tests-electra' of https://github.com/sigp/lighthouse…
realbigsean Jun 20, 2024
fadd7aa
Rename Constants, Structures, and Fields
ethDreamer Jun 18, 2024
37f1146
Second Round
ethDreamer Jun 20, 2024
bcecd80
Third Round
ethDreamer Jun 20, 2024
1e0a3e6
Round Four
ethDreamer Jun 20, 2024
27ed90e
Electra attestation changes sean review (#5972)
realbigsean Jun 21, 2024
b6913ae
Avoid changing slasher schema for Electra
michaelsproul Jun 21, 2024
ebbb17b
Delete slasher schema v4
michaelsproul Jun 21, 2024
13b1b05
Fix clippy
michaelsproul Jun 21, 2024
339d1b8
Fix compilation of beacon_chain tests
michaelsproul Jun 21, 2024
70a80d5
Update database.rs
dapplion Jun 21, 2024
7509cf6
Update per_block_processing.rs
dapplion Jun 21, 2024
8715589
Add electra lightclient types
dapplion Jun 21, 2024
09141ec
Update slasher/src/database.rs
realbigsean Jun 21, 2024
8fc5333
fix imports
realbigsean Jun 21, 2024
5517c78
Merge pull request #5980 from dapplion/electra-lightclient
realbigsean Jun 21, 2024
cf030d0
Merge pull request #5975 from michaelsproul/electra-slasher-no-migration
realbigsean Jun 21, 2024
68fd7a7
Update beacon_node/beacon_chain/src/attestation_verification.rs
realbigsean Jun 21, 2024
d137881
Update beacon_node/beacon_chain/src/attestation_verification.rs
realbigsean Jun 21, 2024
0168124
Merge pull request #5974 from ethDreamer/electra-devnet-1
ethDreamer Jun 25, 2024
87fde51
Merge branch 'unstable' of https://github.com/sigp/lighthouse into el…
realbigsean Jun 25, 2024
a8d84d6
Merge branch 'electra_attestation_changes' of https://github.com/real…
realbigsean Jun 25, 2024
51a8c80
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean Jun 25, 2024
4a858b3
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean Jun 25, 2024
897f06a
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean Jun 25, 2024
cae0294
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthou…
realbigsean Jun 25, 2024
7d243f9
clean up enabled and disabled fork logic in ef tests
realbigsean Jun 25, 2024
eb8a2c2
Merge branch 'ef-tests-electra' of https://github.com/sigp/lighthouse…
realbigsean Jun 25, 2024
f48b704
Electra devnet 1 process operations (#5994)
ethDreamer Jun 26, 2024
86af440
add light client ssz tests
realbigsean Jun 26, 2024
e1fdda4
Update `engine-api` for `devnet-1`
ethDreamer Jun 26, 2024
6e98954
disable failing light client ssz tests
realbigsean Jun 26, 2024
50d0b2f
correctly exclude light client struct from accessed files
realbigsean Jun 26, 2024
9436b40
Fix Failing Tests
ethDreamer Jun 26, 2024
95939dc
Fix Calculations Relying on MAX_EB (#5983)
ethDreamer Jun 26, 2024
806a5eb
The great renaming receipt -> request
pawanjay176 Jun 28, 2024
033457c
Address some more review comments
pawanjay176 Jun 28, 2024
aef797d
Electra: Get `devnet-1` ef-tests Working
ethDreamer Jun 28, 2024
257bcc3
Merge branch 'unstable' of https://github.com/sigp/lighthouse into el…
realbigsean Jul 1, 2024
c9fe10b
Update beacon_node/beacon_chain/src/electra_readiness.rs
realbigsean Jul 1, 2024
69ac342
Update consensus/types/src/chain_spec.rs
realbigsean Jul 1, 2024
ce66f53
Update pending balance deposit processing (#6005)
michaelsproul Jul 3, 2024
128b607
Merge pull request #6001 from ethDreamer/electra-devnet-1-engine-api
ethDreamer Jul 4, 2024
6661094
Merge pull request #6019 from ethDreamer/electra-devnet-1-ef-tests
ethDreamer Jul 4, 2024
fe5730c
Fix Bug in `engine_api` by Renaming Field
ethDreamer Jul 4, 2024
da55b3a
Merge pull request #6047 from ethDreamer/electra-devnet-1-engine-api-fix
ethDreamer Jul 4, 2024
60359d6
one more stupid rename
ethDreamer Jul 4, 2024
6766f32
update GET requests
realbigsean Jul 8, 2024
39d41ad
update POST requests
realbigsean Jul 8, 2024
f405601
add client updates and test updates
realbigsean Jul 9, 2024
0c2ee92
Merge branch 'unstable' of https://github.com/sigp/lighthouse into el…
realbigsean Jul 9, 2024
dabb3d1
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean Jul 9, 2024
80266a8
compile after merge
realbigsean Jul 9, 2024
d1357e4
unwrap -> unwrap_err
realbigsean Jul 9, 2024
d394746
self review
realbigsean Jul 9, 2024
c4cb8ad
fix tests
realbigsean Jul 9, 2024
386aacd
convert op pool messages to electra in electra
realbigsean Jul 11, 2024
71a2ead
remove methods to post without content header
realbigsean Jul 11, 2024
e3ce7fc
Add BeaconBlocksByRange v3
dapplion Jul 15, 2024
9f40d91
Revert "Add BeaconBlocksByRange v3"
dapplion Jul 15, 2024
4065ef6
filter instead of convert
realbigsean Jul 15, 2024
0e59939
Add range sync metrics to track efficiency (#6095)
dapplion Jul 15, 2024
7b283c5
Enable the outbound rate limiter by default, and update blobs method …
jimmygchen Jul 15, 2024
f290c68
Beacon api + validator electra (#5744)
realbigsean Jul 15, 2024
6e54763
Merge branch 'unstable' of https://github.com/sigp/lighthouse into be…
realbigsean Jul 15, 2024
a8aaa42
Merge branch 'beacon-api-electra' of https://github.com/sigp/lighthou…
realbigsean Jul 15, 2024
d88302a
fix ef test compile
realbigsean Jul 15, 2024
c48cd52
use `enabled` fork methods
realbigsean Jul 15, 2024
c0fd66f
get tests passing
realbigsean Jul 15, 2024
064c461
last updates
realbigsean Jul 15, 2024
617a349
Fix bug on engine api with consolidations (#6101)
ethDreamer Jul 15, 2024
8bff966
Fix small bug in engine_api
ethDreamer Jul 16, 2024
faa3e6d
Merge pull request #6116 from ethDreamer/electra-devnet-1
ethDreamer Jul 16, 2024
cf01312
Merge branch 'unstable' of https://github.com/sigp/lighthouse into ef…
realbigsean Jul 16, 2024
42c8c45
add deposit request file
realbigsean Jul 16, 2024
30d1868
Merge branch 'unstable' of https://github.com/sigp/lighthouse into ef…
realbigsean Jul 16, 2024
53ccea7
Merge branch 'ef-tests-electra' of https://github.com/sigp/lighthouse…
realbigsean Jul 16, 2024
6127b4b
clean up after merge
realbigsean Jul 16, 2024
d1b2726
Fix Broken Test on `devnet-1`
ethDreamer Jul 18, 2024
9e8b71e
another small bug
ethDreamer Jul 18, 2024
ba28217
Merge pull request #6132 from ethDreamer/devnet-1-fix-test
ethDreamer Jul 22, 2024
63e418a
Fix Deserialization Bug in `engine-api`
ethDreamer Aug 6, 2024
a3eea87
Merge pull request #6235 from ethDreamer/fix_deserialization
ethDreamer Aug 6, 2024
def0d3c
Merge branch 'unstable' into electra-devnet-1
realbigsean Aug 6, 2024
51d51f5
remove import
realbigsean Aug 6, 2024
2c3b1ee
Merge branch 'unstable' of https://github.com/sigp/lighthouse into el…
realbigsean Aug 14, 2024
b574838
Remove false negative checks on `shuffling_is_compatible`
michaelsproul Aug 16, 2024
1e95ab6
Fix flaky validator monitor test
michaelsproul Aug 22, 2024
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
4 changes: 2 additions & 2 deletions beacon_node/beacon_chain/src/beacon_block_streamer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{metrics, BeaconChain, BeaconChainError, BeaconChainTypes, BlockProcessStatus};
use execution_layer::{ExecutionLayer, ExecutionPayloadBodyV1};
use execution_layer::{ExecutionLayer, ExecutionPayloadBody};
use slog::{crit, debug, error, Logger};
use std::collections::HashMap;
use std::sync::Arc;
Expand Down Expand Up @@ -57,7 +57,7 @@ struct BodiesByRange<E: EthSpec> {
struct BlockParts<E: EthSpec> {
blinded_block: Box<SignedBlindedBeaconBlock<E>>,
header: Box<ExecutionPayloadHeader<E>>,
body: Option<Box<ExecutionPayloadBodyV1<E>>>,
body: Option<Box<ExecutionPayloadBody<E>>>,
}

impl<E: EthSpec> BlockParts<E> {
Expand Down
2 changes: 0 additions & 2 deletions beacon_node/beacon_chain/src/beacon_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5428,8 +5428,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
bls_to_execution_changes: bls_to_execution_changes.into(),
blob_kzg_commitments: kzg_commitments
.ok_or(BlockProductionError::InvalidPayloadFork)?,
// TODO(electra): finish consolidations when they're more spec'd out
consolidations: Vec::new().into(),
},
}),
maybe_blobs_and_proofs,
Expand Down
12 changes: 4 additions & 8 deletions beacon_node/beacon_chain/tests/store_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1437,18 +1437,16 @@ fn check_shuffling_compatible(
head_state.current_epoch(),
|committee_cache, _| {
let state_cache = head_state.committee_cache(RelativeEpoch::Current).unwrap();
// We used to check for false negatives here, but had to remove that check
// because `shuffling_is_compatible` does not guarantee their absence.
//
// See: https://github.com/sigp/lighthouse/issues/6269
if current_epoch_shuffling_is_compatible {
assert_eq!(
committee_cache,
state_cache.as_ref(),
"block at slot {slot}"
);
} else {
assert_ne!(
committee_cache,
state_cache.as_ref(),
"block at slot {slot}"
);
}
Ok(())
},
Expand Down Expand Up @@ -1479,8 +1477,6 @@ fn check_shuffling_compatible(
let state_cache = head_state.committee_cache(RelativeEpoch::Previous).unwrap();
if previous_epoch_shuffling_is_compatible {
assert_eq!(committee_cache, state_cache.as_ref());
} else {
assert_ne!(committee_cache, state_cache.as_ref());
}
Ok(())
},
Expand Down
42 changes: 18 additions & 24 deletions beacon_node/beacon_chain/tests/validator_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use beacon_chain::test_utils::{
use beacon_chain::validator_monitor::{ValidatorMonitorConfig, MISSED_BLOCK_LAG_SLOTS};
use logging::test_logger;
use std::sync::LazyLock;
use types::{Epoch, EthSpec, Keypair, MainnetEthSpec, PublicKeyBytes, Slot};
use types::{Epoch, EthSpec, ForkName, Keypair, MainnetEthSpec, PublicKeyBytes, Slot};

// Should ideally be divisible by 3.
pub const VALIDATOR_COUNT: usize = 48;
Expand Down Expand Up @@ -128,7 +128,7 @@ async fn produces_missed_blocks() {
let initial_blocks = slots_per_epoch * nb_epoch_to_simulate.as_u64() - 1;

// The validator index of the validator that is 'supposed' to miss a block
let mut validator_index_to_monitor = 1;
let validator_index_to_monitor = 1;

// 1st scenario //
//
Expand Down Expand Up @@ -201,34 +201,22 @@ async fn produces_missed_blocks() {
// Missed block happens when slot and prev_slot are not in the same epoch
// making sure that the cache reloads when the epoch changes
// in that scenario the slot that missed a block is the first slot of the epoch
validator_index_to_monitor = 7;
// We are adding other validators to monitor as these ones will miss a block depending on
// the fork name specified when running the test as the proposer cache differs depending on
// the fork name (cf. seed)
//
// If you are adding a new fork and seeing errors, print
// `validator_indexes[slot_in_epoch.as_usize()]` and add it below.
let validator_index_to_monitor_altair = 2;
// Same as above but for the merge upgrade
let validator_index_to_monitor_bellatrix = 4;
// Same as above but for the capella upgrade
let validator_index_to_monitor_capella = 11;
// Same as above but for the deneb upgrade
let validator_index_to_monitor_deneb = 3;
// Same as above but for the electra upgrade
let validator_index_to_monitor_electra = 6;

let harness2 = get_harness(
validator_count,
vec![
validator_index_to_monitor,
validator_index_to_monitor_altair,
validator_index_to_monitor_bellatrix,
validator_index_to_monitor_capella,
validator_index_to_monitor_deneb,
validator_index_to_monitor_electra,
],
);
let validator_index_to_monitor = match harness1.spec.fork_name_at_slot::<E>(Slot::new(0)) {
ForkName::Base => 7,
ForkName::Altair => 2,
ForkName::Bellatrix => 4,
ForkName::Capella => 11,
ForkName::Deneb => 3,
ForkName::Electra => 1,
};

let harness2 = get_harness(validator_count, vec![validator_index_to_monitor]);
let advance_slot_by = 9;
harness2
.extend_chain(
Expand Down Expand Up @@ -300,6 +288,12 @@ async fn produces_missed_blocks() {
duplicate_block_root = *_state2.block_roots().get(idx as usize).unwrap();
validator_indexes = _state2.get_beacon_proposer_indices(&harness2.spec).unwrap();
let not_monitored_validator_index = validator_indexes[slot_in_epoch.as_usize()];
// This could do with a refactor: https://github.com/sigp/lighthouse/issues/6293
assert_ne!(
not_monitored_validator_index,
validator_index_to_monitor,
"this test has a fragile dependency on hardcoded indices. you need to tweak some settings or rewrite this"
);

assert_eq!(
_state2.set_block_root(prev_slot, duplicate_block_root),
Expand Down
Loading
Loading