# Function createConsensusEngine

- createConsensusEngine(
  config?: Partial<ConsensusEngineConfig>,
  logger?: ILogger,
  ): ConsensusEngine

  Create a consensus engine with the given configuration.

  #### Parameters

  - `Optional` config: Partial<ConsensusEngineConfig>
  - `Optional` logger: ILogger

  #### Returns ConsensusEngine

  #### Example

      const engine = createConsensusEngine({
        defaultTimeout: 60000,
        maxActiveProposals: 10,
      });

  - Defined in packages/nexus-agents/src/consensus/engine.ts:679