|
@ -500,7 +500,9 @@ func newStateWithConfigAndBlockStore( |
|
|
t.Fatal(err) |
|
|
t.Fatal(err) |
|
|
} |
|
|
} |
|
|
cs.SetPrivValidator(ctx, pv) |
|
|
cs.SetPrivValidator(ctx, pv) |
|
|
cs.Start(ctx) |
|
|
|
|
|
|
|
|
if err := cs.Start(ctx); err != nil { |
|
|
|
|
|
t.Fatal(err) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return cs |
|
|
return cs |
|
|
} |
|
|
} |
|
@ -819,7 +821,7 @@ func makeConsensusState( |
|
|
l := logger.With("validator", i, "module", "consensus") |
|
|
l := logger.With("validator", i, "module", "consensus") |
|
|
css[i] = newStateWithConfigAndBlockStore(ctx, t, l, thisConfig, state, privVals[i], app, blockStore) |
|
|
css[i] = newStateWithConfigAndBlockStore(ctx, t, l, thisConfig, state, privVals[i], app, blockStore) |
|
|
css[i].SetTimeoutTicker(tickerFunc()) |
|
|
css[i].SetTimeoutTicker(tickerFunc()) |
|
|
css[i].Start(ctx) |
|
|
|
|
|
|
|
|
require.NoError(t, css[i].Start(ctx)) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return css, func() { |
|
|
return css, func() { |
|
@ -888,7 +890,7 @@ func randConsensusNetWithPeers( |
|
|
|
|
|
|
|
|
css[i] = newStateWithConfig(ctx, t, logger.With("validator", i, "module", "consensus"), thisConfig, state, privVal, app) |
|
|
css[i] = newStateWithConfig(ctx, t, logger.With("validator", i, "module", "consensus"), thisConfig, state, privVal, app) |
|
|
css[i].SetTimeoutTicker(tickerFunc()) |
|
|
css[i].SetTimeoutTicker(tickerFunc()) |
|
|
css[i].Start(ctx) |
|
|
|
|
|
|
|
|
require.NoError(t, css[i].Start(ctx)) |
|
|
} |
|
|
} |
|
|
return css, genDoc, peer0Config, func() { |
|
|
return css, genDoc, peer0Config, func() { |
|
|
for _, dir := range configRootDirs { |
|
|
for _, dir := range configRootDirs { |
|
|