Browse Source

move init closer

pull/8091/head
tycho garen 3 years ago
parent
commit
2d55bdec92
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      internal/consensus/common_test.go

+ 1
- 2
internal/consensus/common_test.go View File

@ -549,6 +549,7 @@ func makeState(ctx context.Context, t *testing.T, args makeStateArgs) (*State, [
vss := make([]*validatorStub, validators)
cs := newState(ctx, t, args.logger, state, privVals[0], app)
cs.updateStateFromStore(ctx)
for i := 0; i < validators; i++ {
vss[i] = newValidatorStub(privVals[i], int32(i))
@ -556,8 +557,6 @@ func makeState(ctx context.Context, t *testing.T, args makeStateArgs) (*State, [
// since cs1 starts at 1
incrementHeight(vss[1:]...)
cs.updateStateFromStore(ctx)
return cs, vss
}


Loading…
Cancel
Save