SkynetLabs / python-skynet

Library for integrating Skynet with Python applications
MIT License
15 stars 8 forks source link

Feature Request: Support multiple webportals #1

Open MSevey opened 3 years ago

MSevey commented 3 years ago

Issue by xloem Tuesday Mar 31, 2020 at 17:17 GMT Originally opened as https://github.com/NebulousLabs/python-skynet/issues/12


It would be nice if a set of webportals could be provided, and they might be used round-robin or as backup mirrors if a primary one goes down.

MSevey commented 3 years ago

Comment by Kcchouette Tuesday Apr 21, 2020 at 18:51 GMT


I don't know what you think, but maintaining a list of portal that are not related to Nebulous, by checking if their attribute is ok, that they are up, etc. It can be a work where you waste a lot of time

MSevey commented 3 years ago

Comment by m-cat Wednesday Apr 22, 2020 at 08:11 GMT


The code should be updated to use the new skynet/portals/ API endpoint

Edit: misunderstood the issue a bit, the API endpoint shouldn't be used for this purpose.

MSevey commented 3 years ago

Comment by xloem Wednesday Apr 22, 2020 at 10:00 GMT


@m-cat that api feature sounds great. is it easy for you to quickly link to a description or documentation of that endpoint?

MSevey commented 3 years ago

Comment by m-cat Wednesday Apr 22, 2020 at 13:44 GMT


Sure, it should be officially released soon in the next version at which point it will be documented here

MSevey commented 3 years ago

Comment by xloem Wednesday Jun 17, 2020 at 14:22 GMT


@m-cat I haven't been able to get those to work yet but I'm using https://siastats.info to enumerate portals in my c++ skynet portal api at https://github.com/xloem/siaskynetpp . Do you know if sia would be interested in linking to my c++ api next to their other apis at some point? I'm 0xloem@gmail.com

MSevey commented 3 years ago

Comment by m-cat Friday Jun 26, 2020 at 10:20 GMT


@xloem Sorry for the delay. Take a look at our current position on third-party SDKs, as far as I know it hasn't changed. Let us know what you think.

I haven't been able to get those to work yet but I'm using https://siastats.info to enumerate portals in my c++ skynet portal api

By the way, I think using a reliable public API to enumerate portals is a great idea. However, until we have an officially-supported API for enumerating portals, we can't include this in our SDKs.

MSevey commented 3 years ago

Comment by xloem Saturday Jul 04, 2020 at 13:22 GMT


@m-cat I commented on the current position on third party sdks you linked, but haven't received a reply. As an independent developer is there a path towards reaching the front page with api contributions if I work according to sia guidelines? Or is it more productive to fork things?

Right now I'm looking into designing an interface (in C++ right now) that autoselects portals, switching the selection if one is down before reporting success or failure. Ideally I'd like to do work that's in line with the overall efforts of sia to reduce maintenance in the future.

MSevey commented 3 years ago

Comment by m-cat Monday Jul 06, 2020 at 09:17 GMT


I'm sorry you haven't received a reply, I'll try to call David's attention to it. We have been quite busy lately, but the SDKs are a priority for us and we'd love to work with you on them. I'll forward your questions to the team.

Ideally I'd like to do work that's in line with the overall efforts of sia to reduce maintenance in the future.

We're using this repo to coordinate our efforts on the SDKs. Check out the status document there as it serves as a kind of roadmap for us. If you have any cool ideas, leave an Issue on the repo and we'd be happy to work with you on designing something.

MSevey commented 3 years ago

Comment by xloem Monday Jul 06, 2020 at 13:09 GMT


Thanks =) I've opened issues on that repo.

xloem commented 3 years ago

Noting: I didn't realise that the portals API wasn't intended for this use-case (hadn't read the edit yet). The new API documentation implies that portals could be possibly spidered and enumerated, not sure. It looks like somebody with credentials would have to provide the names of other portals, to the central portals.

Issue migration is cool. It would be nice if the bot linked to the original comments so edit history could be seen.