Merge remote-tracking branch 'origin/stable' into unstable

This commit is contained in:
Michael Sproul
2025-04-22 18:55:06 +10:00
5 changed files with 194 additions and 10 deletions

View File

@@ -135,7 +135,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
state
.get_validator(proposer_slashing.proposer_index() as usize)?
.effective_balance
.safe_div(self.spec.whistleblower_reward_quotient)?,
.safe_div(self.spec.whistleblower_reward_quotient_for_state(state))?,
)?;
}
@@ -157,7 +157,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
state
.get_validator(attester_index as usize)?
.effective_balance
.safe_div(self.spec.whistleblower_reward_quotient)?,
.safe_div(self.spec.whistleblower_reward_quotient_for_state(state))?,
)?;
}
}