From 1fb789e7b7370747233c94611bed8ab2514a1dd2 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Fri, 25 Feb 2022 18:55:51 -0500 Subject: [PATCH] remove needless nil variable --- internal/state/helpers_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/state/helpers_test.go b/internal/state/helpers_test.go index 49e4aae15..de5957f8d 100644 --- a/internal/state/helpers_test.go +++ b/internal/state/helpers_test.go @@ -155,9 +155,7 @@ func makeHeaderPartsResponsesValPubKeyChange( block, err := sf.MakeBlock(state, state.LastBlockHeight+1, new(types.Commit)) require.NoError(t, err) - abciResponses := &tmstate.ABCIResponses{ - FinalizeBlock: &abci.ResponseFinalizeBlock{ValidatorUpdates: nil}, - } + abciResponses := &tmstate.ABCIResponses{} // If the pubkey is new, remove the old and add the new. _, val := state.NextValidators.GetByIndex(0) if !bytes.Equal(pubkey.Bytes(), val.PubKey.Bytes()) { @@ -188,7 +186,7 @@ func makeHeaderPartsResponsesValPowerChange( require.NoError(t, err) abciResponses := &tmstate.ABCIResponses{ - FinalizeBlock: &abci.ResponseFinalizeBlock{ValidatorUpdates: nil}, + FinalizeBlock: &abci.ResponseFinalizeBlock{}, } // If the pubkey is new, remove the old and add the new.