Skip to content

Commit 7de2acd

Browse files
avkr003amityadav0
andauthored
fixing update params logic for estaking (#1345)
Co-authored-by: Amit Yadav <amy29981@gmail.com>
1 parent 015a7f9 commit 7de2acd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

x/estaking/keeper/msg_server.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ func (k msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParam
3030
}
3131

3232
ctx := sdk.UnwrapSDKContext(goCtx)
33+
34+
// Prevent changing Eden and EdenB validators
35+
oldParams := k.GetParams(ctx)
36+
req.Params.EdenCommitVal = oldParams.EdenCommitVal
37+
req.Params.EdenbCommitVal = oldParams.EdenbCommitVal
38+
3339
k.SetParams(ctx, req.Params)
3440

3541
return &types.MsgUpdateParamsResponse{}, nil

0 commit comments

Comments
 (0)