From a58a3cf164aa638f7c642dad5c1f4ed8f4521876 Mon Sep 17 00:00:00 2001 From: mariko Date: Thu, 4 Nov 2021 10:53:12 +0900 Subject: [PATCH] fix: Modify omission of change to change ValidatorSet to VoterSet --- consensus/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/state.go b/consensus/state.go index 6d5ed9381..7984db10b 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -2280,7 +2280,7 @@ func (cs *State) signVote( } addr := cs.privValidatorPubKey.Address() - valIdx, _ := cs.Validators.GetByAddress(addr) + valIdx, _ := cs.Voters.GetByAddress(addr) vote := &types.Vote{ ValidatorAddress: addr,