diff --git a/beacon_node/beacon_chain/src/beacon_fork_choice_store.rs b/beacon_node/beacon_chain/src/beacon_fork_choice_store.rs index 34903aed5d..7d9e42fb81 100644 --- a/beacon_node/beacon_chain/src/beacon_fork_choice_store.rs +++ b/beacon_node/beacon_chain/src/beacon_fork_choice_store.rs @@ -321,14 +321,13 @@ where .deconstruct() .0; - self.justified_balances = self + let state = self .store .get_state(&justified_block.state_root(), Some(justified_block.slot())) .map_err(Error::FailedToReadState)? - .ok_or_else(|| Error::MissingState(justified_block.state_root()))? - .balances() - .clone() - .into(); + .ok_or_else(|| Error::MissingState(justified_block.state_root()))?; + + self.justified_balances = get_effective_balances(&state); } Ok(())