Commit Graph

6394 Commits

Author SHA1 Message Date
realbigsean
cf030d0a8a Merge pull request #5975 from michaelsproul/electra-slasher-no-migration
Avoid changing slasher schema for Electra
2024-06-21 11:25:01 -04:00
realbigsean
5517c78102 Merge pull request #5980 from dapplion/electra-lightclient
Add electra lightclient types
2024-06-21 11:24:33 -04:00
realbigsean
8fc533368c fix imports 2024-06-21 10:57:35 -04:00
realbigsean
09141ec51a Update slasher/src/database.rs 2024-06-21 10:48:43 -04:00
dapplion
8715589e40 Add electra lightclient types 2024-06-21 14:50:03 +02:00
Lion - dapplion
70a80d5da0 Update database.rs 2024-06-21 09:48:35 +02:00
Michael Sproul
339d1b8229 Fix compilation of beacon_chain tests 2024-06-21 17:36:45 +10:00
Michael Sproul
13b1b05960 Fix clippy 2024-06-21 17:03:06 +10:00
Michael Sproul
ebbb17b6bc Delete slasher schema v4 2024-06-21 14:21:36 +10:00
Michael Sproul
b6913ae542 Avoid changing slasher schema for Electra 2024-06-21 14:21:36 +10:00
realbigsean
27ed90e4dc Electra attestation changes sean review (#5972)
* instantiate empty bitlist in unreachable code

* clean up error conversion

* fork enabled bool cleanup

* remove a couple todos

* return bools instead of options in `aggregate` and use the result

* delete commented out code

* use map macros in simple transformations

* remove signers_disjoint_from

* get ef tests compiling

* get ef tests compiling

* update intentionally excluded files
2024-06-21 14:20:10 +10:00
realbigsean
efb8a01e91 Merge branch 'unstable' of https://github.com/sigp/lighthouse into electra_attestation_changes 2024-06-20 09:36:56 -04:00
Eitan Seri-Levi
f85a124362 Electra attestation changes from Lions review (#5971)
* dedup/cleanup and remove unneeded hashset use

* remove irrelevant TODOs
2024-06-20 09:36:43 -04:00
dapplion
0e2add2daa Fork aware ssz static attestation tests 2024-06-20 09:58:53 +02:00
realbigsean
381bbaba94 ensure aggregate and proof uses serde untagged on ref 2024-06-19 17:04:47 -04:00
realbigsean
afb9122cc1 update default persisted op pool deserialization 2024-06-19 15:00:33 -04:00
realbigsean
6e4483288a Merge pull request #5940 from dapplion/electra_attestation_changes_lionreview
Electra attestations #5712 review
2024-06-19 13:52:19 -04:00
realbigsean
3977b92c49 remove dup method get_indexed_attestation_from_committees 2024-06-19 13:45:47 -04:00
dapplion
d67270f899 committees are sorted 2024-06-19 12:59:27 +02:00
dapplion
a8d8989c05 Use ok_or instead of if let else 2024-06-19 12:50:41 +02:00
dapplion
9e6e76fb89 Remove get_indexed_attestation_from_signed_aggregate 2024-06-19 12:47:38 +02:00
dapplion
70a2d4de10 Use electra_enabled in pubsub 2024-06-19 11:43:41 +02:00
dapplion
cbb7c5d8f4 Test spec invariant 2024-06-19 11:39:45 +02:00
dapplion
370d511223 Fix beacon_chain tests 2024-06-19 11:31:51 +02:00
dapplion
4d4c268e1e Remove stale TODO 2024-06-19 11:31:51 +02:00
dapplion
7fce143300 Resolve into_attestation_and_indices todo 2024-06-19 11:31:50 +02:00
dapplion
4d3edfeaed Use Ord for ForkName in pubsub 2024-06-19 11:31:50 +02:00
dapplion
7521f97ca5 Diff reduction 2024-06-19 11:31:50 +02:00
dapplion
d26473621a Fix beacon_chain tests 2024-06-19 11:31:50 +02:00
dapplion
444cd625ef Diff reduction in tests 2024-06-19 11:31:50 +02:00
dapplion
6f0b78426a Dedup Attestation constructor code 2024-06-19 11:31:50 +02:00
dapplion
6a4d842376 Use if let Ok for committee_bits 2024-06-19 11:31:50 +02:00
dapplion
dec7cff9c7 Dedup attestation constructor logic in attester cache 2024-06-19 11:31:50 +02:00
Lion - dapplion
2634a1f1a6 Update common/eth2/src/types.rs
Co-authored-by: ethDreamer <37123614+ethDreamer@users.noreply.github.com>
2024-06-19 11:31:50 +02:00
Eitan Seri-Levi
7af3f2eb35 add electra fork enabled fn to ForkName impl (#36)
* add electra fork enabled fn to ForkName impl

* remove inadvertent file
2024-06-19 11:31:50 +02:00
realbigsean
9e84779522 Indexed att on disk (#35)
* indexed att on disk

* fix lints

* Update slasher/src/migrate.rs

Co-authored-by: ethDreamer <37123614+ethDreamer@users.noreply.github.com>

---------

Co-authored-by: Lion - dapplion <35266934+dapplion@users.noreply.github.com>
Co-authored-by: ethDreamer <37123614+ethDreamer@users.noreply.github.com>
2024-06-19 11:31:50 +02:00
dapplion
45d007a71f Add PendingAttestationInElectra 2024-06-19 11:31:50 +02:00
dapplion
5070ab254d Drop TestRandom impl 2024-06-19 11:31:50 +02:00
dapplion
f0492852f3 Remove IndexedAttestation faulty Decode impl 2024-06-19 11:31:50 +02:00
dapplion
4f08f6e0da Remove TestRandom impl for IndexedAttestation 2024-06-19 11:31:50 +02:00
dapplion
5acc0523df Make to_electra not fallible 2024-06-19 11:31:50 +02:00
dapplion
1d0e3f4d30 Use ForkName Ord in BeaconBlockBody 2024-06-19 11:31:50 +02:00
dapplion
960f8c5c48 Use ForkName Ord in fork-choice tests 2024-06-19 11:31:50 +02:00
dapplion
795eff9bf4 Remove outdated TODO 2024-06-19 11:31:50 +02:00
dapplion
3ec21a2435 Dedup match_attestation_data 2024-06-19 11:31:50 +02:00
dapplion
dd0d5e2d93 Remove unwraps in Attestation construction 2024-06-19 11:31:50 +02:00
dapplion
d87541c045 De-dup attestation constructor logic 2024-06-19 11:31:50 +02:00
Age Manning
f69ccc3b70 Ensure all handler events are covered (#5945)
* Ensure handler events are covered
2024-06-19 05:02:37 +00:00
João Oliveira
1503f7d652 report failed requests from RPC after being clear from rate limiter but not yet sent. (#5942)
* report failed rpc requests from RPC
2024-06-19 05:02:34 +00:00
Michael Sproul
adb3f865ef Lower tolerance of stale blobs on gossip (#5935)
* Lower tolerance of stale blobs on gossip

* Drop to debug
2024-06-19 05:02:31 +00:00