-
Notifications
You must be signed in to change notification settings - Fork 65
feat: Implemented the process_registry_updates function #90
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
Conversation
KolbyML
left a comment
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.
looks good
| let sig = blst::min_pk::Signature::from_bytes(&signed_block.signature.signature) | ||
| .map_err(|err| anyhow!("Unable to retrieve BLS Signature from byets, {:?}", err))?; | ||
| let public_key = PublicKey::from_bytes(&proposer.pubkey.inner) | ||
| .map_err(|err| anyhow!("Unable to convert PublicKey, {:?}", err))?; |
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.
| let sig = blst::min_pk::Signature::from_bytes(&signed_block.signature.signature) | |
| .map_err(|err| anyhow!("Unable to retrieve BLS Signature from byets, {:?}", err))?; | |
| let public_key = PublicKey::from_bytes(&proposer.pubkey.inner) | |
| .map_err(|err| anyhow!("Unable to convert PublicKey, {:?}", err))?; | |
| let sig = blst::min_pk::Signature::from_bytes(&signed_block.signature.signature) | |
| .map_err(|err| anyhow!("Failed to convert signature to BLS Signature type, {err:?}"))?; | |
| let public_key = PublicKey::from_bytes(&proposer.pubkey.inner) | |
| .map_err(|err| anyhow!("Failed to convert pubkey to BLS PublicKey type, {err:?}"))?; |
| let churn_limit = self.get_validator_activation_churn_limit(); | ||
| for i in 0..churn_limit.min(activation_queue.len() as u64) { | ||
| let index = activation_queue[i as usize]; |
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.
| let churn_limit = self.get_validator_activation_churn_limit(); | |
| for i in 0..churn_limit.min(activation_queue.len() as u64) { | |
| let index = activation_queue[i as usize]; | |
| for index in activation_queue[..self.get_validator_activation_churn_limit() as usize] { |
does this week?
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.
it does indeed work
| let validator = &mut self.validators[index]; | ||
| validator.activation_epoch = compute_activation_exit_epoch(current_epoch); |
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.
| let validator = &mut self.validators[index]; | |
| validator.activation_epoch = compute_activation_exit_epoch(current_epoch); | |
| self.validators[index].activation_epoch = compute_activation_exit_epoch(current_epoch); |
Implemented the process_registry_updates function
https://ethereum.github.io/consensus-specs/specs/deneb/beacon-chain/#registry-updates