Skip to content

Commit

Permalink
fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoke committed Sep 3, 2024
1 parent 92102af commit cb6b525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (k Keeper) SendVSCPacketsToChain(ctx sdk.Context, consumerId, channelId str
// If this happens, most likely the consumer is malicious; remove it
err := k.StopConsumerChain(ctx, consumerId, true)
if err != nil {
return fmt.Errorf("stopping consumer, chainID(%s): %w", chainID, err)
return fmt.Errorf("stopping consumer, consumerId(%s): %w", consumerId, err)
}
return nil
}
Expand Down
6 changes: 3 additions & 3 deletions x/ccv/provider/keeper/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func TestQueueVSCPacketsDoesNotResetConsumerValidatorsHeights(t *testing.T) {
err := providerKeeper.SetConsumerPowerShapingParameters(ctx, "consumerId", providertypes.PowerShapingParameters{})
require.NoError(t, err)

err := providerKeeper.QueueVSCPackets(ctx)
err = providerKeeper.QueueVSCPackets(ctx)
require.NoError(t, err)

// the height of consumer validator A should not be modified because A was already a consumer validator
Expand Down Expand Up @@ -626,7 +626,7 @@ func TestEndBlockVSU(t *testing.T) {

// with block height of 1 we do not expect any queueing of VSC packets
ctx = ctx.WithBlockHeight(1)
_, err := providerKeeper.EndBlockVSU(ctx)
_, err = providerKeeper.EndBlockVSU(ctx)
require.NoError(t, err)
require.Equal(t, 0, len(providerKeeper.GetPendingVSCPackets(ctx, chainID)))

Expand Down Expand Up @@ -772,7 +772,7 @@ func TestQueueVSCPacketsWithPowerCapping(t *testing.T) {
params.MaxProviderConsensusValidators = 180
providerKeeper.SetParams(ctx, params)

err := providerKeeper.QueueVSCPackets(ctx)
err = providerKeeper.QueueVSCPackets(ctx)
require.NoError(t, err)

actualQueuedVSCPackets := providerKeeper.GetPendingVSCPackets(ctx, "consumerId")
Expand Down

0 comments on commit cb6b525

Please sign in to comment.