Browse Source

fix build

pull/8062/head
tycho garen 3 years ago
parent
commit
7daf19a156
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      node/setup.go

+ 4
- 1
node/setup.go View File

@ -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)


Loading…
Cancel
Save