Skip to content

Commit 7080788

Browse files
committed
chore: fix tests
1 parent 0320f76 commit 7080788

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

consensus/state.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2728,6 +2728,8 @@ func (cs *State) syncData() {
27282728

27292729
// ValidateProposal stateful validation of the proposal.
27302730
func (cs *State) ValidateProposal(proposal *types.Proposal) (*cmtproto.Proposal, error) {
2731+
cs.mtx.RLock()
2732+
defer cs.mtx.RUnlock()
27312733
// Does not apply
27322734
if proposal.Height != cs.Height || proposal.Round != cs.Round {
27332735
return nil, fmt.Errorf("%w: proposal height %v round %v does not match state height %v round %v", errInvalidProposalHeightRound, proposal.Height, proposal.Round, cs.Height, cs.Round)

0 commit comments

Comments
 (0)