diff --git a/node/setup.go b/node/setup.go index 5f4739ede..bc071f3cf 100644 --- a/node/setup.go +++ b/node/setup.go @@ -267,7 +267,7 @@ func createConsensusReactor( ) (*consensus.Reactor, *consensus.State, error) { logger = logger.With("module", "consensus") - consensusState := consensus.NewState(ctx, + consensusState, err := consensus.NewState(ctx, logger, cfg.Consensus, store, @@ -277,6 +277,9 @@ func createConsensusReactor( evidencePool, consensus.StateMetrics(csMetrics), ) + if err != nil { + return nil, nil, err + } if privValidator != nil && cfg.Mode == config.ModeValidator { consensusState.SetPrivValidator(ctx, privValidator)