@Override
  public boolean enable() {
    // Return true if we're already running or idle, or successfully switch to idle
    if (state.get() == State.RUNNING
        || state.get() == State.IDLE
        || state.compareAndSet(State.PAUSED, State.IDLE)) {
      return true;
    }
    return false;
  }
Instantiates a new Bft mining coordinator.

@param bftExecutors the bft executors
@param eventHandler the event handler
@param bftProcessor the bft processor
@param blockCreatorFactory the block creator factory
@param blockchain the blockchain
@param eventQueue the event queue
@param syncState the sync state
consensus/common/src/main/java/org/hyperledger/besu/consensus/common/bft/blockcreation/BftMiningCoordinator.java