Removed code for GET validator/blinded_blocks and also adjusted/removed tests#7515
Removed code for GET validator/blinded_blocks and also adjusted/removed tests#7515PoulavBhowmick03 wants to merge 6 commits intosigp:unstablefrom
validator/blinded_blocks and also adjusted/removed tests#7515Conversation
0d463bd to
7cfbced
Compare
validator/blinded_blocks and also adjusted/removed tests
7cfbced to
b0b57b5
Compare
|
@michaelsproul @eserilev PTAL at this |
53dc327 to
3936be5
Compare
|
@michaelsproul can you take a look at the changes and the implementation now please? |
| let (payload_type, metadata) = self | ||
| .client | ||
| .get_validator_blinded_blocks::<E>(slot, &randao_reveal, None) | ||
| .get_validator_blocks_v3::<E>(slot, &randao_reveal, None, None) | ||
| .await | ||
| .unwrap() | ||
| .into_data() | ||
| .body() | ||
| .execution_payload() | ||
| .unwrap() | ||
| .into(); | ||
| .unwrap(); | ||
| Self::check_block_v3_metadata(&metadata, &payload_type); | ||
|
|
||
| let payload: FullPayload<E> = match payload_type.data { | ||
| ProduceBlockV3Response::Full(payload) => { | ||
| payload.block().body().execution_payload().unwrap().into() | ||
| } | ||
| ProduceBlockV3Response::Blinded(_) => panic!("Expecting a full payload"), | ||
| }; |
There was a problem hiding this comment.
comment for clarity: we want to check that we fallback local EE, so this is equivalent to the previous test format. Some of the other test changes below do something similar. looks good!
|
Any update on this? @michaelsproul |
michaelsproul
left a comment
There was a problem hiding this comment.
Looks good on the whole, thanks for sticking with this!
Just a few tweaks and then I think we can merge.
Sorry for the slow review, I've been busy trying to get tree-states across the line and also getting some stuff reading for the next PeerDAS devnet
| self.chain.slot_clock.set_slot(slot.as_u64() + 1); | ||
| } | ||
| ProduceBlockV3Response::Full(block_contents) => { | ||
| assert!(!metadata.execution_payload_blinded); |
There was a problem hiding this comment.
This test is meant to be checking blinded production, so I think it should error in the Full case
Ah I see, that's some important stuff to get done with! No issues |
a1171ee to
6f70e93
Compare
6f70e93 to
176a8bf
Compare
176a8bf to
c988628
Compare
|
@michaelsproul, in order for the tests to pass, what should we do in case of panic for FullBlock? |
|
what you suggested about only panicking post Bellatrix sounds good |
f8523b4 to
00f985e
Compare
|
@michaelsproul can you PTAL now |
bcc4f9d to
37609f6
Compare
|
Hi @PoulavBhowmick03, this pull request has been closed automatically due to 30 days of inactivity. If you’d like to continue working on it, feel free to reopen at any time. |
|
Sorry this got backburnered while we fixed the HTTP tests (harder than expected: #7943). I didn't want to merge it while the tests were disabled. If you can update it with the latest changes from unstable and make sure the tests are passing, we can review it and merge 🙏 Thanks! |
yes i was looking into that PR. sure, i will fetch the changes and work on this! |
…ed tests for that endpoint
…ithout the blinded block endpoints
37609f6 to
25ea22b
Compare
|
@michaelsproul i have fixed the merge conflicts, can you take a look if it's fine |
|
Hi @PoulavBhowmick03, this pull request has been closed automatically due to 30 days of inactivity. If you’d like to continue working on it, feel free to reopen at any time. |
|
Hi @PoulavBhowmick03, this pull request has been closed automatically due to 30 days of inactivity. If you’d like to continue working on it, feel free to reopen at any time. |
|
Mergify might be getting angry over this PR now 😂 |
|
Hi @PoulavBhowmick03, this pull request has been closed automatically due to 30 days of inactivity. If you’d like to continue working on it, feel free to reopen at any time. |
Issue Addressed
Fixes #7456
Proposed Changes
Remove client/server code for deprecated GET
validator/blinded_blocksendpoint and subsequently, removed the tests which were just testing the blinded endpoint, and modified other endpoints to use the new GET/eth/v3/validator/blocksendpointAdditional Info
None