Skip to content

Commit

Permalink
Merge pull request #51 from babylonlabs-io/merge-main-into-dev--7
Browse files Browse the repository at this point in the history
add staking tx hash hex log in delegation (#45)
  • Loading branch information
jrwbabylonlab authored Sep 3, 2024
2 parents 719a1ee + ee89071 commit 399fb03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/services/unbonding.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ func (s *Services) UnbondDelegation(
}

if delegationDoc.State != types.Active {
log.Ctx(ctx).Warn().Msg("delegation state is not active, hence not eligible for unbonding")
log.Ctx(ctx).Warn().
Str("stakingTxHashHex", stakingTxHashHex).
Str("state", delegationDoc.State.ToString()).
Msg("delegation state is not active, hence not eligible for unbonding")
return types.NewErrorWithMsg(http.StatusForbidden, types.Forbidden, "delegation state is not active")
}

Expand Down

0 comments on commit 399fb03

Please sign in to comment.