diff --git a/x/ccv/consumer/types/genesis_test.go b/x/ccv/consumer/types/genesis_test.go index 4816457064..bbe031d0d7 100644 --- a/x/ccv/consumer/types/genesis_test.go +++ b/x/ccv/consumer/types/genesis_test.go @@ -94,7 +94,6 @@ func TestValidateInitialGenesisState(t *testing.T) { ConsensusState: consensusState, InitialValSet: valUpdates, }, - MaturingPackets: nil, HeightToValsetUpdateId: nil, OutstandingDowntimeSlashing: nil, PendingConsumerPackets: types.ConsumerPacketDataList{}, @@ -115,28 +114,6 @@ func TestValidateInitialGenesisState(t *testing.T) { ConsensusState: consensusState, InitialValSet: valUpdates, }, - MaturingPackets: nil, - HeightToValsetUpdateId: nil, - OutstandingDowntimeSlashing: nil, - PendingConsumerPackets: types.ConsumerPacketDataList{}, - LastTransmissionBlockHeight: types.LastTransmissionBlockHeight{}, - PreCCV: false, - }, - true, - }, - { - "invalid new consumer genesis state: non-empty unbonding sequences", - &types.GenesisState{ - Params: params, - ProviderClientId: "", - ProviderChannelId: "", - NewChain: true, - Provider: ccv.ProviderInfo{ - ClientState: cs, - ConsensusState: consensusState, - InitialValSet: valUpdates, - }, - MaturingPackets: []types.MaturingVSCPacket{{}}, HeightToValsetUpdateId: nil, OutstandingDowntimeSlashing: nil, PendingConsumerPackets: types.ConsumerPacketDataList{}, @@ -157,7 +134,6 @@ func TestValidateInitialGenesisState(t *testing.T) { ConsensusState: consensusState, InitialValSet: valUpdates, }, - MaturingPackets: nil, HeightToValsetUpdateId: nil, OutstandingDowntimeSlashing: nil, PendingConsumerPackets: types.ConsumerPacketDataList{}, @@ -178,7 +154,6 @@ func TestValidateInitialGenesisState(t *testing.T) { ConsensusState: consensusState, InitialValSet: valUpdates, }, - MaturingPackets: nil, HeightToValsetUpdateId: nil, OutstandingDowntimeSlashing: nil, PendingConsumerPackets: types.ConsumerPacketDataList{List: []ccv.ConsumerPacketData{{}}}, @@ -281,13 +256,6 @@ func TestValidateRestartConsumerGenesisState(t *testing.T) { valHash := valSet.Hash() valUpdates := tmtypes.TM2PB.ValidatorUpdates(valSet) - matConsumerPacket := ccv.ConsumerPacketData{ - Type: ccv.VscMaturedPacket, - Data: &ccv.ConsumerPacketData_VscMaturedPacketData{ - VscMaturedPacketData: ccv.NewVSCMaturedPacketData(1), - }, - } - slashConsumerPacket := ccv.ConsumerPacketData{ Type: ccv.SlashPacket, Data: &ccv.ConsumerPacketData_SlashPacketData{ @@ -314,13 +282,6 @@ func TestValidateRestartConsumerGenesisState(t *testing.T) { gs *types.GenesisState expError bool }{ - { - "valid restart consumer genesis state: empty maturing packets", - types.NewRestartGenesisState("ccvclient", "ccvchannel", valUpdates, heightToValsetUpdateID, - types.ConsumerPacketDataList{List: []ccv.ConsumerPacketData{matConsumerPacket, slashConsumerPacket}}, - nil, types.LastTransmissionBlockHeight{Height: 100}, params), - false, - }, { "valid restart consumer genesis state: handshake in progress ", types.NewRestartGenesisState("ccvclient", "", valUpdates, heightToValsetUpdateID, @@ -377,12 +338,6 @@ func TestValidateRestartConsumerGenesisState(t *testing.T) { types.NewRestartGenesisState("ccvclient", "ccvchannel", nil, nil, types.ConsumerPacketDataList{}, nil, types.LastTransmissionBlockHeight{}, params), true, }, - { - "invalid restart consumer genesis state: nil height to validator set id mapping", - types.NewRestartGenesisState("ccvclient", "", - valUpdates, nil, types.ConsumerPacketDataList{}, nil, types.LastTransmissionBlockHeight{}, params), - true, - }, { "invalid restart consumer genesis state: outstanding downtime defined when handshake is still in progress", types.NewRestartGenesisState("ccvclient", "", @@ -396,19 +351,6 @@ func TestValidateRestartConsumerGenesisState(t *testing.T) { valUpdates, heightToValsetUpdateID, types.ConsumerPacketDataList{}, nil, types.LastTransmissionBlockHeight{Height: int64(1)}, params), true, }, - { - "invalid restart consumer genesis state: pending maturing packets defined when handshake is still in progress", - types.NewRestartGenesisState("ccvclient", "", - valUpdates, heightToValsetUpdateID, types.ConsumerPacketDataList{ - List: []ccv.ConsumerPacketData{ - { - Type: ccv.VscMaturedPacket, - Data: &ccv.ConsumerPacketData_VscMaturedPacketData{VscMaturedPacketData: ccv.NewVSCMaturedPacketData(1)}, - }, - }, - }, nil, types.LastTransmissionBlockHeight{Height: int64(1)}, params), - true, - }, { "invalid restart consumer genesis state: invalid params", types.NewRestartGenesisState("ccvclient", "ccvchannel", valUpdates, nil, types.ConsumerPacketDataList{}, nil, types.LastTransmissionBlockHeight{},