Skip to content

Commit

Permalink
cr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
timwu20 committed Sep 5, 2024
1 parent b47c717 commit b12e34a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/finality-grandpa/voting_round.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ type stateStart[T any] [2]T

type stateProposed[T any] [2]T

type statePrevoting[T, W any] struct {
type statePrevoting[T, U any] struct {
T T
W W
U U
}

type statePrevoted[T any] [1]T
Expand Down Expand Up @@ -638,7 +638,7 @@ func (vr *votingRound[Hash, Number, Signature, ID, E]) prevote(w *waker, lastRou
case stateProposed[Timer]:
return startPrevoting(state[0], state[1], true, w)
case statePrevoting[Timer, hashBestChain[Hash, Number]]:
return finishPrevoting(state.T, state.W.Hash, state.W.BestChain, w)
return finishPrevoting(state.T, state.U.Hash, state.U.BestChain, w)
default:
vr.state = state
}
Expand Down

0 comments on commit b12e34a

Please sign in to comment.