From e43e72c70a6e8a3b6ca30f45474b64e30580a98c Mon Sep 17 00:00:00 2001 From: Thane Thomson Date: Sat, 7 May 2022 09:43:23 -0400 Subject: [PATCH] Fix TestMaxProposalBlockSize Signed-off-by: Thane Thomson --- node/node_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/node/node_test.go b/node/node_test.go index 9cdd3a19c..749921582 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -533,7 +533,7 @@ func TestMaxProposalBlockSize(t *testing.T) { } extCommit := &types.ExtendedCommit{ - Height: math.MaxInt64, + Height: math.MaxInt64 - 1, Round: math.MaxInt32, BlockID: blockID, } @@ -544,9 +544,11 @@ func TestMaxProposalBlockSize(t *testing.T) { for i := 0; i < types.MaxVotesCount; i++ { pubKey, err := privVals[i].GetPubKey(ctx) require.NoError(t, err) + valAddr := pubKey.Address() votes[i] = &types.Vote{ - ValidatorAddress: pubKey.Address(), + ValidatorAddress: valAddr, } + ecs.ValidatorAddress = valAddr extCommit.ExtendedSignatures = append(extCommit.ExtendedSignatures, ecs) }