Skip to content

Commit 85254d6

Browse files
authored
fix: correct mutex usage in consensus logic to prevent potential deadlock (#4946)
1 parent a6a8f93 commit 85254d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consensus/consensus_v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ func (consensus *Consensus) BlockCommitSigs(blockNum uint64) ([]byte, error) {
318318
defer consensus.mutex.Unlock()
319319
if err != nil ||
320320
len(lastCommits) < bls.BLSSignatureSizeInBytes {
321-
msgs := consensus.FBFTLog().GetMessagesByTypeSeq(
321+
msgs := consensus.fBFTLog.GetMessagesByTypeSeq(
322322
msg_pb.MessageType_COMMITTED, blockNum,
323323
)
324324
if len(msgs) != 1 {

0 commit comments

Comments
 (0)