Skip to content

Commit

Permalink
Add missing checks when updating progressive balances metrics.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmygchen committed Jun 29, 2023
1 parent 72935e1 commit f49daa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion consensus/state_processing/src/per_block_processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ pub fn per_block_processing<T: EthSpec, Payload: AbstractExecPayload<T>>(
)?;
}

update_progressive_balances_metrics(state.progressive_balances_cache())?;
if is_progressive_balances_enabled(state) {
update_progressive_balances_metrics(state.progressive_balances_cache())?;
}

Ok(())
}
Expand Down

0 comments on commit f49daa0

Please sign in to comment.