Connect app and proxy to different networks and nodes. #440
Comments
Makes sense, although I'd expect as a developer to be able to pass these options via the CLI too, since editing the code isn't ideal. I'm also realizing now that we are conflating two configurations (correct me if I'm wrong):
Thinking about this more, I think the application shouldn't be concerned directly with ffnet/mainnet/etc (1). Rather, it should connect to some registry node somewhere and have the option to specify an address (2). And that node will be configured to join some network (testnet/mainnet). Example:
|
What you said makes sense. I’ll need to look closer at this but what I’m imagining now for the implementation is to use some flag on the proxy that allows you to specify the node address. I’ll also add a shortcut (or documentation) for a ffnet host so that it is not necessary to run you own node. |
I disagree with that direction while we should allow connection to a host/port pair we should also have simple ways of switching between our major networks, ideally through the settings (the interface exists). This will allow users to switch easily between the networks for different use-cases. |
I'm not sure what use-cases you're thinking about, but since the app will not always directly control the registry node it's connecting to, this seems impossible. Since this is a developer-only feature anyway, I don't see this as a problem either. |
Fixes #440. The proxy now accepts a node host for the `--registry` option and can connect to an arbitrary registry node. We also provide shortcuts for the ffnet and devnet.
Fixes #440. The proxy now accepts a node host for the `--registry` option and can connect to an arbitrary registry node. We also provide shortcuts for the ffnet and devnet.
Fixes #440. The proxy now accepts a node host for the `--registry` option and can connect to an arbitrary registry node. We also provide shortcuts for the ffnet and devnet.
As a developer I want to be able to work with the app on the ffnet as well as the devnet, a local node, and the registry emulator so that I can work with persistent data and test the app under realistic conditions. The mechanism for this should be properly documented.
In the future it should be possible to extend this mechanism to allow an app user to set the network/node host through a CLI flag when starting the app.
We will not implement the full network selector described in #128.
The text was updated successfully, but these errors were encountered: