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

Beacon api + validator electra #5744

Merged
merged 230 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
3b7132b
Attestation superstruct changes for EIP 7549 (#5644)
eserilev Apr 30, 2024
e6c7f14
`superstruct` the `AttesterSlashing` (#5636)
ethDreamer May 2, 2024
3a41e13
Merge remote-tracking branch 'upstream/unstable' into electra_attesta…
ethDreamer May 2, 2024
9b98f4e
Make EF Tests Fork-Agnostic (#5713)
ethDreamer May 3, 2024
7c6526d
Finish EF Test Fork Agnostic (#5714)
ethDreamer May 3, 2024
19a9479
Superstruct `AggregateAndProof` (#5715)
ethDreamer May 6, 2024
9f6de8e
Merge remote-tracking branch 'sigp/unstable' into electra_attestation…
realbigsean May 6, 2024
38382a3
cargo fmt
realbigsean May 6, 2024
2c2e44c
Merge pull request #5726 from realbigsean/electra_attestation_changes
realbigsean May 6, 2024
e2e82ff
process withdrawals updates
realbigsean May 6, 2024
e0abede
cleanup withdrawals processing
realbigsean May 7, 2024
f1f9f92
update `process_operations` deposit length check
realbigsean May 7, 2024
3c68841
add apply_deposit changes
realbigsean May 7, 2024
1d5f755
add execution layer withdrawal request processing
realbigsean May 7, 2024
32357d8
process deposit receipts
realbigsean May 7, 2024
c40bec9
add consolidation processing
realbigsean May 7, 2024
31955c2
update process operations function
realbigsean May 7, 2024
75ab913
exit updates
realbigsean May 7, 2024
5728f78
clean up
realbigsean May 7, 2024
8517236
update slash_validator
realbigsean May 7, 2024
90179d4
EIP7549 `get_attestation_indices` (#5657)
eserilev May 8, 2024
f30246b
Some small changes (#5739)
ethDreamer May 8, 2024
7c0a8f8
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 8, 2024
43c3f63
cargo fmt (#5740)
ethDreamer May 8, 2024
721e73f
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 8, 2024
7abb762
fix attestation verification
realbigsean May 8, 2024
42a4993
Add new engine api methods
pawanjay176 May 6, 2024
ca2a946
Fix the versioning of v4 requests
pawanjay176 May 7, 2024
1ddd078
Handle new engine api methods in mock EL
pawanjay176 May 7, 2024
3ef7c90
Note todo
pawanjay176 May 7, 2024
683de56
Fix todos
pawanjay176 May 8, 2024
dd5c9a8
Add support for electra fields in getPayloadBodies
pawanjay176 May 8, 2024
5e1d5ff
Add comments for potential versioning confusion
pawanjay176 May 8, 2024
c8fca4f
udpates for aggregate attestation endpoint
realbigsean May 9, 2024
c20fc48
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 9, 2024
7cb7653
Sketch op pool changes
michaelsproul May 9, 2024
e32dfcd
fix get attesting indices (#5742)
realbigsean May 9, 2024
3ea3d22
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 9, 2024
07229b7
Ef test fixes (#5753)
realbigsean May 9, 2024
36a559e
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 9, 2024
6fe919a
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean May 9, 2024
c575cd6
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 9, 2024
cb8c8f5
Fix Aggregation Pool for Electra (#5754)
ethDreamer May 9, 2024
c30f709
fix ssz (#5755)
realbigsean May 9, 2024
ab9e58a
Get `electra_op_pool` up to date (#5756)
ethDreamer May 9, 2024
ca09671
Revert "Get `electra_op_pool` up to date (#5756)" (#5757)
ethDreamer May 9, 2024
b807d39
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 9, 2024
19f8333
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 9, 2024
fae4a2b
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean May 9, 2024
f9d4a28
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 9, 2024
411fcee
Compute on chain aggregate impl (#5752)
eserilev May 10, 2024
6477eec
update beacon api aggregate attestationendpoint
realbigsean May 10, 2024
e448557
update the naive agg pool interface (#5760)
realbigsean May 10, 2024
aa83e8b
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 10, 2024
9b5ea9d
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean May 10, 2024
e494b41
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 10, 2024
d505c04
updates after merge
realbigsean May 10, 2024
437e851
Fix bugs in cross-committee aggregation
michaelsproul May 10, 2024
16265ef
Add comment to max cover optimisation
michaelsproul May 10, 2024
72548cb
Fix assert
michaelsproul May 10, 2024
08e0458
Electra epoch processing
michaelsproul May 7, 2024
ba02ffc
add deposit limit for old deposit queue
realbigsean May 10, 2024
6d2c396
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean May 10, 2024
be9c4bb
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 10, 2024
7926afe
Merge pull request #5749 from sigp/electra_op_pool
realbigsean May 10, 2024
89e4de9
don't fail on empty consolidations
realbigsean May 10, 2024
f60eac6
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 10, 2024
677a94d
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean May 10, 2024
9bd430b
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean May 10, 2024
4b28872
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 10, 2024
e1dcfb6
update committee offset
realbigsean May 11, 2024
b819d2d
Merge branch 'electra_attestation_changes' of https://github.com/sigp…
realbigsean May 11, 2024
40c4c00
update committee offset
realbigsean May 11, 2024
5364ba5
update committee offset
realbigsean May 11, 2024
9a22eb8
update committee offset
realbigsean May 11, 2024
a97e86c
only increment the state deposit index on old deposit flow
realbigsean May 11, 2024
261551e
Merge branch 'block-processing-electra' of https://github.com/sigp/li…
realbigsean May 11, 2024
518a91a
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean May 11, 2024
1ab786a
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 11, 2024
a75257f
use correct max eb in epoch cache initialization
realbigsean May 11, 2024
f4907ef
drop initiate validator ordering optimization
realbigsean May 11, 2024
75f22ee
fix initiate exit for single pass
realbigsean May 11, 2024
28cf796
Merge branch 'electra-epoch-proc' of https://github.com/sigp/lighthou…
realbigsean May 11, 2024
fc2c942
accept new payload v4 in mock el
realbigsean May 11, 2024
b8dc628
Merge branch 'electra-engine-api' of https://github.com/sigp/lighthou…
realbigsean May 11, 2024
3b1fb0a
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
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
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
c680164
Send unagg attestation based on fork
pawanjay176 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
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
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
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
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
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
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
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
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
09f48c5
Fix Compilation Break
ethDreamer Jun 20, 2024
68035eb
Merge pull request #5973 from ethDreamer/beacon-api-electra
realbigsean 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
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
806a5eb
The great renaming receipt -> request
pawanjay176 Jun 28, 2024
033457c
Address some more review comments
pawanjay176 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
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
4065ef6
filter instead of convert
realbigsean Jul 15, 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
12 changes: 10 additions & 2 deletions beacon_node/beacon_chain/src/eth1_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,20 @@ impl<E: EthSpec> Eth1ChainBackend<E> for CachingEth1Backend<E> {
state.eth1_data().deposit_count
};

match deposit_index.cmp(&deposit_count) {
// [New in Electra:EIP6110]
let deposit_index_limit =
if let Ok(deposit_receipts_start_index) = state.deposit_requests_start_index() {
std::cmp::min(deposit_count, deposit_receipts_start_index)
} else {
deposit_count
};

match deposit_index.cmp(&deposit_index_limit) {
Ordering::Greater => Err(Error::DepositIndexTooHigh),
Ordering::Equal => Ok(vec![]),
Ordering::Less => {
let next = deposit_index;
let last = std::cmp::min(deposit_count, next + E::MaxDeposits::to_u64());
let last = std::cmp::min(deposit_index_limit, next + E::MaxDeposits::to_u64());

self.core
.deposits()
Expand Down
202 changes: 152 additions & 50 deletions beacon_node/http_api/src/lib.rs

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions beacon_node/http_api/tests/fork_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,13 @@ async fn attestations_across_fork_with_skip_slots() {
.collect::<Vec<_>>();

assert!(!unaggregated_attestations.is_empty());
let fork_name = harness.spec.fork_name_at_slot::<E>(fork_slot);
client
.post_beacon_pool_attestations(&unaggregated_attestations)
.post_beacon_pool_attestations_v1(&unaggregated_attestations)
.await
.unwrap();
client
.post_beacon_pool_attestations_v2(&unaggregated_attestations, fork_name)
.await
.unwrap();

Expand All @@ -162,7 +167,11 @@ async fn attestations_across_fork_with_skip_slots() {
assert!(!signed_aggregates.is_empty());

client
.post_validator_aggregate_and_proof(&signed_aggregates)
.post_validator_aggregate_and_proof_v1(&signed_aggregates)
.await
.unwrap();
client
.post_validator_aggregate_and_proof_v2(&signed_aggregates, fork_name)
.await
.unwrap();
}
Expand Down
3 changes: 2 additions & 1 deletion beacon_node/http_api/tests/interactive_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -890,9 +890,10 @@ async fn queue_attestations_from_http() {
.flat_map(|attestations| attestations.into_iter().map(|(att, _subnet)| att))
.collect::<Vec<_>>();

let fork_name = tester.harness.spec.fork_name_at_slot::<E>(attestation_slot);
let attestation_future = tokio::spawn(async move {
client
.post_beacon_pool_attestations(&attestations)
.post_beacon_pool_attestations_v2(&attestations, fork_name)
.await
.expect("attestations should be processed successfully")
});
Expand Down
Loading
Loading