Skip to content

Conversation

@Kayden-ML
Copy link
Contributor

Copy link
Contributor

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

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

:shipit: looks good

Comment on lines 1540 to 1543
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))?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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:?}"))?;

Comment on lines 1599 to 1601
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];
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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?

Copy link
Contributor Author

@Kayden-ML Kayden-ML Feb 10, 2025

Choose a reason for hiding this comment

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

it does indeed work

Comment on lines 1602 to 1603
let validator = &mut self.validators[index];
validator.activation_epoch = compute_activation_exit_epoch(current_epoch);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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);

@Kayden-ML Kayden-ML added this pull request to the merge queue Feb 10, 2025
Merged via the queue into ReamLabs:master with commit 41f8fce Feb 10, 2025
5 checks passed
@KolbyML KolbyML added this to the v0.1.0 milestone Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants