Browse Source

move init closer

pull/8127/head
tycho garen 2 years ago
committed by M. J. Fromberger
parent
commit
8f627b03fe
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

@ -554,6 +554,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))
@ -561,8 +562,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