Skip to content

[FEATURE]: Skip loading of koinosrc file if RPC endpoint is passed on the command line #158

@jredbeard

Description

@jredbeard

Is there an existing issue for this?

  • I have searched the existing issues

New feature

As a CLI wallet user I'd like to be able to specify an RPC endpoint and still connect to it even if a .koinosrc file is present that contains a connect command.

Current behavior if a .koinosrc file is present and you use the -r option:
202759668-e1bbdae6-55a3-4727-b18b-c344f461bfe9

Once there is a global RC file implemented for system-wide package manager installs (separate related issue #157) then there will be no way around this and -r will never work for me because a .koinosrc file will always be loaded no matter what.

If a .koinosrc file is present in either the local or global locations and -r is specified a message should also be displayed saying Ignoring koinosrc file because an RPC endpoint was specified with -r

Anything else?

I believe that this should be only for the -r command line argument but could potentially just be all command line arguments.

It should skip loading the entire .koinosrc file because contract addresses specified in it may be incorrect if you are connecting to a different endpoint (and this helps to keep the app chain agnostic while still delivering a good user experience for average mainnet users).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions