From f5a9fa355655061d391433ba9af06adba6c95d25 Mon Sep 17 00:00:00 2001 From: Timothy Wu Date: Thu, 5 Sep 2024 13:25:39 -0400 Subject: [PATCH] cr feedback --- pkg/finality-grandpa/voting_round.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/finality-grandpa/voting_round.go b/pkg/finality-grandpa/voting_round.go index 8abadd8654..32b6485c21 100644 --- a/pkg/finality-grandpa/voting_round.go +++ b/pkg/finality-grandpa/voting_round.go @@ -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 @@ -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 }