rotki icon indicating copy to clipboard operation
rotki copied to clipboard

Automatically configure nodes on Dappnode

Open kelsos opened this issue 3 years ago • 2 comments

Abstract

Automatically setup the app when using dappnode

kelsos avatar Jul 21 '22 14:07 kelsos

After talking with @kelsos, I believe if we could provide rotki a config file (json/yaml) it would significantly improve the packaging on Dappnode.

I could create a file on dappnodes end, something like this:

  "nodes": {
    "fullnode": {
      "name": "fullnode.dappnode", 
      "weight": 100,
      "port": 8545,
      "chain": "Ethereum"
    },
    "kusamanode": {
      "name": "kusama.dappnode", 
      "weight": 100,
      "port": 9999,
      "chain": "Kusama"
    },
    "polkadot": {
      "name": "polkadot.dappnode", 
      "weight": 100,
      "port": 9423,
      "chain": "Polkadot"
    }  
  }
}

We could then place this file in /config/nodes.json and rotki could read the file via the flag --nodes /config/nodes.json. Rotkis backend could then populate Ethereum RPC Nodes and both Local Nodes fields.

I am, of course, open for changes and additions to this format!

Nabsku avatar Sep 16 '22 08:09 Nabsku

@yabirgb @LefterisJP for this we need changes so that the backend can support this format and get the config done automatically

kelsos avatar Sep 16 '22 08:09 kelsos