Skip to content

Commit

Permalink
chore: Use correct minUnbondingTime from params (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitferry authored Jun 25, 2024
1 parent ff0eebf commit 1b58842
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions covenant/covenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ func (ce *CovenantEmulator) AddCovenantSignatures(btcDels []*types.Delegation) (
// - MinUnbondingTime
// - CheckpointFinalizationTimeout
unbondingTime := btcDel.UnbondingTime
minUnbondingTime := params.MinUnbondingTime
if unbondingTime <= minUnbondingTime {
minUnbondingTime := params.MinimumUnbondingTime()
if uint64(unbondingTime) <= minUnbondingTime {
ce.logger.Error("invalid unbonding time",
zap.Uint32("min_unbonding_time", minUnbondingTime),
zap.Uint64("min_unbonding_time", minUnbondingTime),
zap.Uint32("got_unbonding_time", unbondingTime),
)
continue
Expand Down

0 comments on commit 1b58842

Please sign in to comment.