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

refactor: remove block vrf verification from epoch manager #12447

Open
wants to merge 2 commits into
base: stefan/remove_verify_chunk_header
Choose a base branch
from

Conversation

stedfn
Copy link
Contributor

@stedfn stedfn commented Nov 13, 2024

Removes block vrf verification from epoch manager

@stedfn stedfn self-assigned this Nov 13, 2024
@stedfn stedfn changed the base branch from master to stefan/remove_verify_chunk_header November 15, 2024 13:57
@stedfn stedfn changed the title refactor: remove signature verifications refactor: remove block vrf verification from epoch manager Nov 15, 2024
@stedfn stedfn marked this pull request as ready for review November 15, 2024 16:08
@stedfn stedfn requested a review from a team as a code owner November 15, 2024 16:08
@stedfn stedfn requested review from tayfunelmas, pugachAG and shreyan-gupta and removed request for a team and tayfunelmas November 15, 2024 16:08
header.height(),
let validator =
self.epoch_manager.get_block_producer_info(header.epoch_id(), header.height())?;
crate::signature_verification::verify_block_vrf(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: could we put verify_block_vrf as part of imports instead of fully qualifying?

self.get_block_producer_info(epoch_id, height).map(|validator| validator.take_account_id())
}

fn get_block_producer_info(
Copy link
Contributor

Choose a reason for hiding this comment

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

@pugachAG, how comfortable are we with exposing block producer info?

Copy link
Contributor

Choose a reason for hiding this comment

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

don't see any issues with that, especially considering that we already expose chunk producer info this way

Copy link
Contributor

@pugachAG pugachAG left a comment

Choose a reason for hiding this comment

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

could you please add a TODO to deprecate get_block_producer in favour of get_block_producer_info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants