Browse Source

move lock

pull/8127/head
M. J. Fromberger 3 years ago
parent
commit
8e17c96413
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      internal/consensus/common_test.go

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

@ -242,10 +242,9 @@ func decideProposal(
t.Helper()
cs1.mtx.Lock()
block, err := cs1.createProposalBlock(ctx)
require.NoError(t, err)
blockParts, err := block.MakePartSet(types.BlockPartSizeBytes)
block, blockParts, err := cs1.createProposalBlock(ctx)
require.NoError(t, err)
cs1.mtx.Lock()
validRound := cs1.ValidRound
chainID := cs1.state.ChainID
cs1.mtx.Unlock()


Loading…
Cancel
Save