Skip to content

Removed code for GET validator/blinded_blocks and also adjusted/removed tests #7515

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

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

PoulavBhowmick03
Copy link

@PoulavBhowmick03 PoulavBhowmick03 commented May 24, 2025

Issue Addressed

Fixes #7456

Proposed Changes

Remove client/server code for deprecated GET validator/blinded_blocks endpoint and subsequently, removed the tests which were just testing the blinded endpoint, and modified other endpoints to use the new GET /eth/v3/validator/blocks endpoint

Additional Info

None

@PoulavBhowmick03 PoulavBhowmick03 force-pushed the remove/blinded_blocks branch from 0d463bd to 7cfbced Compare May 24, 2025 13:41
@PoulavBhowmick03 PoulavBhowmick03 changed the title Removed code for GET validator/blinded_blocks and also adjusted/removed tests Removed code for GET validator/blinded_blocks and also adjusted/removed tests May 24, 2025
@PoulavBhowmick03 PoulavBhowmick03 force-pushed the remove/blinded_blocks branch from 7cfbced to b0b57b5 Compare May 24, 2025 14:08
@PoulavBhowmick03
Copy link
Author

@michaelsproul @eserilev PTAL at this

@michaelsproul michaelsproul added ready-for-review The code is ready for review code-quality backwards-incompat Backwards-incompatible API change labels May 25, 2025
ProduceBlockV3Response::Blinded(payload) => {
payload.body().execution_payload().unwrap().into()
}
ProduceBlockV3Response::Full(_) => panic!("Expecting a full payload"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ProduceBlockV3Response::Full(_) => panic!("Expecting a full payload"),
ProduceBlockV3Response::Full(_) => panic!("Expecting a blinded payload"),

ProduceBlockV3Response::Blinded(payload) => {
payload.body().execution_payload().unwrap().into()
}
ProduceBlockV3Response::Full(_) => panic!("Expecting a full payload"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ProduceBlockV3Response::Full(_) => panic!("Expecting a full payload"),
ProduceBlockV3Response::Full(_) => panic!("Expecting a blinded payload"),

self
}

pub async fn test_blinded_block_production_verify_randao_invalid(self) -> Self {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to review this more tomorrow, but maybe we could keep these tests and use blocks_v3 with a non-None value to force builder usage

@michaelsproul michaelsproul added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backwards-incompat Backwards-incompatible API change code-quality waiting-on-author The reviewer has suggested changes and awaits thier implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants