Skip to content
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: disable create/edit validator #392

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions x/stake/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,29 @@ func NewHandler(k keeper.Keeper, govKeeper gov.Keeper) sdk.Handler {
return handleMsgUndelegate(ctx, msg, k)
// case MsgSideChain
case types.MsgCreateSideChainValidator:
if sdk.IsUpgrade(sdk.FirstSunsetFork) {
return sdk.ErrMsgNotSupported("").Result()
}
return handleMsgCreateSideChainValidator(ctx, msg, k)
return sdk.ErrMsgNotSupported("Temporarily unavailable").Result()
//if sdk.IsUpgrade(sdk.FirstSunsetFork) {
// return sdk.ErrMsgNotSupported("").Result()
//}
//return handleMsgCreateSideChainValidator(ctx, msg, k)
case types.MsgEditSideChainValidator:
if sdk.IsUpgrade(sdk.FirstSunsetFork) {
return sdk.ErrMsgNotSupported("").Result()
}
return handleMsgEditSideChainValidator(ctx, msg, k)
return sdk.ErrMsgNotSupported("Temporarily unavailable").Result()
//if sdk.IsUpgrade(sdk.FirstSunsetFork) {
// return sdk.ErrMsgNotSupported("").Result()
//}
//return handleMsgEditSideChainValidator(ctx, msg, k)
case types.MsgCreateSideChainValidatorWithVoteAddr:
if sdk.IsUpgrade(sdk.FirstSunsetFork) {
return sdk.ErrMsgNotSupported("").Result()
}
return handleMsgCreateSideChainValidatorWithVoteAddr(ctx, msg, k)
return sdk.ErrMsgNotSupported("Temporarily unavailable").Result()
//if sdk.IsUpgrade(sdk.FirstSunsetFork) {
// return sdk.ErrMsgNotSupported("").Result()
//}
//return handleMsgCreateSideChainValidatorWithVoteAddr(ctx, msg, k)
case types.MsgEditSideChainValidatorWithVoteAddr:
if sdk.IsUpgrade(sdk.FirstSunsetFork) {
return sdk.ErrMsgNotSupported("").Result()
}
return handleMsgEditSideChainValidatorWithVoteAddr(ctx, msg, k)
return sdk.ErrMsgNotSupported("Temporarily unavailable").Result()
//if sdk.IsUpgrade(sdk.FirstSunsetFork) {
// return sdk.ErrMsgNotSupported("").Result()
//}
//return handleMsgEditSideChainValidatorWithVoteAddr(ctx, msg, k)
case types.MsgSideChainDelegate:
if sdk.IsUpgrade(sdk.FirstSunsetFork) {
return sdk.ErrMsgNotSupported("").Result()
Expand Down
Loading