From c0d83b0966405868e817fd80944dd2c0e67066a9 Mon Sep 17 00:00:00 2001 From: Gurjot Date: Tue, 26 Nov 2024 10:46:20 +0530 Subject: [PATCH] add unbonding as qualified state in withdrawn due to slow expiry checker --- internal/types/state.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/types/state.go b/internal/types/state.go index 0a8d4a8..e37684c 100644 --- a/internal/types/state.go +++ b/internal/types/state.go @@ -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