Skip to content

Commit

Permalink
rpc: fix SetReadonly
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkiebell committed Mar 26, 2019
1 parent 766275f commit 40d5f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/core/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ func validatorAtHeight(h int64) *types.Validator {
return nil
}

func SetReadonly(readonly bool) (*ctypes.ResultSetReadonly, error) {
func SetReadonly(ctx *rpctypes.Context, readonly bool) (*ctypes.ResultSetReadonly, error) {
consensusState.SetReadonly(readonly)

return &ctypes.ResultSetReadonly{"Set validator as readonly: " + strconv.FormatBool(readonly)}, nil
return &ctypes.ResultSetReadonly{Log: "Set validator as readonly: " + strconv.FormatBool(readonly)}, nil
}

0 comments on commit 40d5f3d

Please sign in to comment.