From 7daf19a1567363f7faca6a210b1d02ca68438821 Mon Sep 17 00:00:00 2001 From: tycho garen Date: Thu, 3 Mar 2022 15:45:29 -0500 Subject: [PATCH] fix build --- node/setup.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)