Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Allow Configuration of RPC Modules #74

@ansermino

Description

@ansermino

Presently it seems impossible to pass configuration options from the CLI to the RPC command.

This is how we produce the rpc command: lcd.ServeCommand(cdc, registerRoutes). ServeCommand requires a function with signature func (_ *lcd.RestServer). Thus, inside of registerRoutes, where modules are enabled, there is no access to the cli context. Ironically lcd.RestServer has a cli context but from "github.com/cosmos/cosmos-sdk/client/context", which provides no access.

There may be a way to use Viper (or Cobra) to bind a variable to the cli flags, yet to figure out for myself.

For the time being, "web3" and "eth" are enabled by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersstalestale PRs that will be closed if no further action occurs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions