-
Notifications
You must be signed in to change notification settings - Fork 632
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
base: stefan/remove_verify_chunk_header
Are you sure you want to change the base?
Conversation
header.height(), | ||
let validator = | ||
self.epoch_manager.get_block_producer_info(header.epoch_id(), header.height())?; | ||
crate::signature_verification::verify_block_vrf( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this 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
Removes block vrf verification from epoch manager