code: func softForkStatus(state blockchain.ThresholdState) (string, error) {
  	switch state {
  	case blockchain.ThresholdDefined:
  		return "defined", nil
  	case blockchain.ThresholdStarted:
  		return "started", nil
  	case blockchain.ThresholdLockedIn:
  		return "lockedin", nil
  	case blockchain.ThresholdActive:
  		return "active", nil
  	case blockchain.ThresholdFailed:
  		return "failed", nil
  	default:
  		return "", fmt.Errorf("unknown deployment state: %v", state)
  	}
  }
docs: // softForkStatus converts a ThresholdState state into a human readable string
  // corresponding to the particular state.