Skip to content

Commit

Permalink
Update pkg/watcher/slashing.go
Browse files Browse the repository at this point in the history
change debug message

Co-authored-by: Matt Ketmo <[email protected]>
  • Loading branch information
qwertzlbert and MattKetmo authored Nov 12, 2024
1 parent 1722a03 commit b9c1169
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/watcher/slashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ func (w *SlashingWatcher) fetchSlashingParameters(ctx context.Context, node *rpc
}

func (w *SlashingWatcher) handleSlashingParams(chainID string, params slashing.Params) {
log.Info().
Str("Slashing parameters for chain:", chainID).
Str("Signed blocks window:", fmt.Sprint(params.SignedBlocksWindow)).
Str("Min signed per window:", params.MinSignedPerWindow.String()).
Str("Downtime jail duration:", params.DowntimeJailDuration.String()).
Str("Slash fraction double sign:", params.SlashFractionDoubleSign.String()).
Str("Slash fraction downtime:", params.SlashFractionDowntime.String()).
Msgf("Updating slashing metrics for chain %s", chainID)
log.Debug().
Str("chainID", chainID).
Str("downtimeJailDuration", params.DowntimeJailDuration.String()).
Str("minSignedPerWindow", fmt.Sprintf("%.2f", params.MinSignedPerWindow.MustFloat64())).
Str("signedBlocksWindow", fmt.Sprint(params.SignedBlocksWindow)).
Str("slashFractionDoubleSign", fmt.Sprintf("%.2f", params.SlashFractionDoubleSign.MustFloat64())).
Str("slashFractionDowntime", fmt.Sprintf("%.2f", params.SlashFractionDowntime.MustFloat64())).
Msgf("updating slashing metrics")

w.signedBlocksWindow = params.SignedBlocksWindow
w.min_signed_per_window, _ = params.MinSignedPerWindow.Float64()
Expand Down

0 comments on commit b9c1169

Please sign in to comment.