mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-18 04:13:00 +00:00
Implement tree states & hierarchical state DB
This commit is contained in:
@@ -24,11 +24,11 @@ impl JustifiedBalances {
|
||||
.validators()
|
||||
.iter()
|
||||
.map(|validator| {
|
||||
if !validator.slashed && validator.is_active_at(current_epoch) {
|
||||
total_effective_balance.safe_add_assign(validator.effective_balance)?;
|
||||
if !validator.slashed() && validator.is_active_at(current_epoch) {
|
||||
total_effective_balance.safe_add_assign(validator.effective_balance())?;
|
||||
num_active_validators.safe_add_assign(1)?;
|
||||
|
||||
Ok(validator.effective_balance)
|
||||
Ok(validator.effective_balance())
|
||||
} else {
|
||||
Ok(0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user