message: fix(shell_automaton): block precheck not working after rebase
diff: @@ -23,8 +23,8 @@ pub struct CurrentHeadReceivedAction {
  /// and its block hash hasn't seen yet.
  impl EnablingCondition<State> for CurrentHeadReceivedAction {
  fn is_enabled(&self, state: &State) -> bool {
  - !state.config.disable_block_precheck
  - && state
  + // TODO: maybe we need to check `state.can_accept_new_head(head)` instead?
  + state
  .current_head_candidate_level()
  .map_or(true, |l| l == self.block_header.level())
  && !state
  @@ -43,8 +43,7 @@ pub struct CurrentHeadPrecheckAction {
  impl EnablingCondition<State> for CurrentHeadPrecheckAction {
  fn is_enabled(&self, state: &State) -> bool {
  - !state.config.disable_block_precheck
  - && state
  + state
  .current_head_level()
  .map_or(false, |applied_head_level| {
  if let Some(CurrentHeadState::Received { block_header }) =
  @@ -104,6 +103,6 @@ pub struct CurrentHeadPrecacheBakingRightsAction {}
  impl EnablingCondition<State> for CurrentHeadPrecacheBakingRightsAction {
  fn is_enabled(&self, state: &State) -> bool {
  - !state.config.disable_block_precheck && state.current_head.get().is_some()
  + state.current_head.get().is_some()
  }
  }
  