Skip to content

Commit

Permalink
fix: expired check in delegation status
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Feb 28, 2025
1 parent 1568c74 commit ee9fa62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/btcstaking/types/btc_delegation.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (d *BTCDelegation) GetStatus(

// if the endheight is lower than the btc height + unbonding time
// the btc delegation should be considered expired
if btcHeight+d.UnbondingTime > d.EndHeight {
if btcHeight+d.UnbondingTime >= d.EndHeight {
return BTCDelegationStatus_EXPIRED
}

Expand Down
2 changes: 1 addition & 1 deletion x/finality/keeper/power_dist_change_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func FuzzDistributionCache_BtcUndelegateSameBlockAsExpiration(f *testing.F) {
datagen.AddRandomSeedsToFuzzer(f, 10)

f.Fuzz(func(t *testing.T, seed int64) {
// t.Parallel()
t.Parallel()
r := rand.New(rand.NewSource(seed))

app := babylonApp.Setup(t, false)
Expand Down

0 comments on commit ee9fa62

Please sign in to comment.