Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swarm: Need support for multiple geth endpoints (for ENS, SWAP, SWEAR...) #14386

Closed
cobordism opened this issue Apr 27, 2017 · 4 comments
Closed

Comments

@cobordism
Copy link
Contributor

Currently swarm is in testing -- we are using ropsten for all blockchain interactions. Interaction with the blockchain happens via the --ethapi /path/to/geth.ipc flag.

Once ENS is deployed, we will want to be able to register swarm assets in the ENS on mainnet and we will also want to continue testing components such as SWAP or SWEAR on the testnet. As a result we will need support for multiple geth.ipc endpoints.

Suggestion:
Allow the --ethapi flag to be superseded by --ens-api, --swap-api and --swear-swindle-api.

@cobordism
Copy link
Contributor Author

We should also be able to split ENS into multiple endpoints depending on the tld.

so perhaps we should have --ens-api or --ens-eth-api for .eth domains (presumably mainnet) and also --ens-test-api for .test domains from the testnet.

@zelig
Copy link
Contributor

zelig commented Oct 5, 2017

I recommend an ens-api flag syntax and interface design.

 -ens-endpoints <default>;test:<test-endpoints>(,<other-test-endpoint>),swarm:<swarm-ens-endpoint>

Endpoints are enode-style urls:

 <contract-address>:<blockchain-eth-api-url>

ens-endpoints is a semicolon-separated list of

  (<tld>:)<endpoint>(,<endpoint>)+

When domains are resolved, the registered endpoints are used, top level domains can define their own sequence of ENS registry addresses. The contract address is before the @ sign in the url.
If no tld is given the endpoint is used unless the tld specifies its own endpoint.

@lmars
Copy link
Contributor

lmars commented Oct 5, 2017

So I actually recommend using the config file as the primary way to configure these endpoints.

gbalint added a commit that referenced this issue Feb 22, 2018
prestonvanloon pushed a commit to prestonvanloon/go-ethereum that referenced this issue Apr 2, 2018
Implement a CLI flag that can be repeated to allow multiple ENS
resolvers for different TLDs.
@cobordism
Copy link
Contributor Author

closing this issue.|
we have solved this for ens api and we intend to proceed along these lines for swap when it becomes available.

mariameda pushed a commit to NiluPlatform/go-nilu that referenced this issue Aug 23, 2018
Implement a CLI flag that can be repeated to allow multiple ENS
resolvers for different TLDs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants