Skip to content

Commit

Permalink
Fix typo bug in PBFT view change
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Pavlovic <matopavlovic@gmail.com>
  • Loading branch information
matejpavlovic committed Jul 10, 2023
1 parent ef1f3f5 commit f33dc4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/orderers/internal/common/pbftviewchangestate.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ func (vcState *PbftViewChangeState) SetLocalPreprepares(state *State, view ot.Vi
if preprepare := state.LookUpPreprepare(sn, digest); preprepare != nil {
// The re-proposed Preprepare must have an updated view.
// We create a copy of the found Preprepare
prepareCopy := *preprepare
preprepare.View = view
vcState.Preprepares[sn] = &prepareCopy
preprepareCopy := *preprepare
preprepareCopy.View = view
vcState.Preprepares[sn] = &preprepareCopy
}
}
}
Expand Down

0 comments on commit f33dc4f

Please sign in to comment.