Skip to content

Commit

Permalink
add unbonding as qualified state in withdrawn due to slow expiry checker
Browse files Browse the repository at this point in the history
  • Loading branch information
gusin13 committed Nov 26, 2024
1 parent 34262cc commit c0d83b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/types/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ func QualifiedStatesForExpired() []DelegationState {

// QualifiedStatesForWithdrawn returns the qualified current states for Withdrawn event
func QualifiedStatesForWithdrawn() []DelegationState {
return []DelegationState{StateWithdrawable}
// StateUnbonding is included because its possible that expiry checker is slow
// and in meanwhile the btc subscription encounters the spending/withdrawal tx
return []DelegationState{StateUnbonding, StateWithdrawable}
}

// QualifiedStatesForWithdrawable returns the qualified current states for Withdrawable event
Expand Down

0 comments on commit c0d83b0

Please sign in to comment.