-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add sp exit status check when craete gvg #433
Conversation
x/virtualgroup/keeper/msg_server.go
Outdated
@@ -56,6 +56,10 @@ func (k msgServer) CreateGlobalVirtualGroup(goCtx context.Context, req *types.Ms | |||
return nil, sptypes.ErrStorageProviderNotFound.Wrapf("The address must be operator address of sp.") | |||
} | |||
|
|||
if !sp.IsInService() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should also allow Maintenance SP otherwise it is not able to conduct self test if no GVG created yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Does sp in maintenance can send swapout tx?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not allowed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, make sense. Please review this pr again. thx.
* add sp exit status check when create gvg and swapout * allow sp in maintenance can create gvg
Description
Add sp exit status check when craete gvg
Rationale
Add sp exit status check when craete gvg
Example
NA
Changes
Notable changes: