Skip to content

Commit

Permalink
Allow suspended resource node to unbond. (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiong-stratos authored Mar 7, 2024
1 parent f6cea5c commit e4f3aba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x/register/keeper/resource_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,6 @@ func (k Keeper) UnbondResourceNode(ctx sdk.Context, networkAddr stratos.SdsAddre
switch resourceNode.GetStatus() {

case stakingtypes.Bonded:
if resourceNode.GetSuspend() {
err = types.ErrInvalidSuspensionStatForUnbondNode
return
}
depositToRemove = sdk.NewCoin(k.BondDenom(ctx), availableDeposit)
// transfer the node tokens to the not bonded pool
k.bondedToUnbonding(ctx, resourceNode, false, depositToRemove)
Expand Down

0 comments on commit e4f3aba

Please sign in to comment.