Cosmos-sdk: Add gaiacli config command & config file

Created on 10 Jul 2018  路  5Comments  路  Source: cosmos/cosmos-sdk

One of the most valuable features for cleanup phase is add a gaiacli config command. Ultimately this is where the source-of-trust will be initialized for light client proofs, but also in the meanwhile we can use it to set a bunch of the redundant parameters, and then remove (or hide) them from the majority of gaiacli commands.

Flags which I think can be stuffed in the gaiacli init are:

      --chain-id string   
      --height int        
      --ledger            
      --node string     
      --trust-node        
Global Flags:
      --encoding string   
      --home string       
      --output string    
      --trace             
CLI help wanted

Most helpful comment

I can take this guy.

All 5 comments

I think this would be GREAT and really help avoid large commands. I don't know if we should put --height in there, but the others are great. We could pull the default --chain-id out of the ~/.gaiad/config/genesis.json file right?

Another thing I've noticed is that --output isn't respected by many of the commands that return JSON.

Can you explain a bit more Ultimately this is where the source-of-trust will be initialized for light client proofs?

We could pull the default --chain-id out of the ~/.gaiad/config/genesis.json file right?

don't see why not

Can you explain a bit more Ultimately this is where the source-of-trust will be initialized for light client proofs?

it's exactly that - the light client needs to start from some source of truth, we need a command to initiate that source of truth which the user of the light client must verify through other means (chat with a friend, hashes into bitcoin etc)

Well the issue with reading from there is that its not the root folder for gaiacli and we don't want to add a gaiad "dependency" on the CLI. They should ideally be completely independent, right?

So basically we would want to persist the --chain-id and the --node.

I can take this guy.

Awesome @mslipper

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mossid picture mossid  路  3Comments

faboweb picture faboweb  路  3Comments

cwgoes picture cwgoes  路  3Comments

rigelrozanski picture rigelrozanski  路  3Comments

jackzampolin picture jackzampolin  路  3Comments