Skip to content

Commit

Permalink
fix errs
Browse files Browse the repository at this point in the history
  • Loading branch information
gusin13 committed Sep 13, 2024
1 parent 678fe9d commit 129cae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/finality/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ func (k Keeper) slashFinalityProvider(ctx context.Context, fpBtcPk *bbn.BIP340Pu
panic(fmt.Errorf("failed to slash finality provider: %v", err))
}

// Notify consumer chains about the slashed finality provider
// Propagate slashing information to consumer chains
if err := k.BTCStakingKeeper.PropagateFPSlashingToConsumers(ctx, fpBtcPk); err != nil {
panic(fmt.Errorf("failed to notify consumers of slashed finality provider: %w", err))
panic(fmt.Errorf("failed to propagate finality provider slashing to consumers: %w", err))
}

// emit slashing event
Expand Down

0 comments on commit 129cae1

Please sign in to comment.