Browse Source

move lock

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

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

@ -238,9 +238,9 @@ func decideProposal(
) (proposal *types.Proposal, block *types.Block) { ) (proposal *types.Proposal, block *types.Block) {
t.Helper() t.Helper()
cs1.mtx.Lock()
block, blockParts, err := cs1.createProposalBlock(ctx) block, blockParts, err := cs1.createProposalBlock(ctx)
require.NoError(t, err) require.NoError(t, err)
cs1.mtx.Lock()
validRound := cs1.ValidRound validRound := cs1.ValidRound
chainID := cs1.state.ChainID chainID := cs1.state.ChainID
cs1.mtx.Unlock() cs1.mtx.Unlock()


Loading…
Cancel
Save