kukai-wallet / kukai-core-swift

Kukai Core Swift is a native Swift library for interacting with the Tezos blockchain and other applications in the Tezos ecosystem
MIT License
10 stars 8 forks source link

Giganode node doesn't exist anymore #1

Closed aklowther closed 3 years ago

aklowther commented 3 years ago

Models/Config/TezosNodeClientConfig defaultMainnetURLs.primaryNodeURL is no longer in service as of October 1, 2021. This should migrate to another node, ex: https://mainnet.smartpy.io

https://twitter.com/GigaNode/status/1435265400699342854?s=20

simonmcl commented 3 years ago

@aklowther Sorry only seeing this now, didn't get an email about it

Giganode is not shutting down, it was handed over to tezedge who are maintaining it going forward: https://twitter.com/GigaNode/status/1443577078511652864

aklowther commented 3 years ago

That may be the goal but in practice, the node is down. I guess it doesn't matter that much if you have a fallback URL. I've only used this SDK for 2 minutes (literally), so I haven't gotten that far into understanding it. if you believe #2 is unnecessary, I can decline it

image
simonmcl commented 3 years ago

@aklowther ping might be disabled on the server, or it could have been down briefly due to an issue.

I was working on the develop branch of this yesterday. I tested mainnet balance requests and it was fine against giganode. I'll keep an eye on it and change the default if it does go down. But it's not necessary right now to change it.

If it does go down, the config object allows you to pass in your own urls. That convenience init is just to help people new to tezos or new to the swift library to get up and running to conduct tests. Most apps end up deploying their own nodes and will point to their own anyway

Also if you do end up using this library for your own app, let us know. It's mainly for our own use cases, but it can help us secure funding if we can show others are relying on it

aklowther commented 3 years ago

I was intending to write my own library until I found this one. I'm working on a few projects at the same time and unfortunately this one has the least of my attention.

I did just try to curl -s http://mainnet-tezos.giganode.io:8732/describe/chains/main/blocks/genesis/hash and still got no response. 🤷 the app that I'm writing is for monitoring with an acceptable delay, I don't need my own node (which is why I was very aware when the default wouldn't load). My app is mainly to support other services that need to send push notifications somewhere. I want the app to be something more than a dumping ground for APNs.

simonmcl commented 3 years ago

@aklowther i'm not familiar with that RPC, and I can't find it on either the default OpenAPI spec: https://gitlab.com/tezos/tezos/-/blob/master/docs/api/rpc-openapi.json or the granadanet specific OpenAPI spec: https://gitlab.com/tezos/tezos/-/blob/master/docs/api/granada-openapi.json. Some RPC's are extremely expensive to run and public nodes will block them. You would need to run your own nodes if this API is one of them (but i'm not sure what it is).

Here is the cURL output of one of my postman requests, using giganode to fetch the current head. This is working as expected:

curl --location --request GET 'https://mainnet-tezos.giganode.io/chains/main/blocks/head'
aklowther commented 3 years ago

Your request does produce results for me 🤷. I found my request https://tezos.gitlab.io/developer/rpc.html , I don't actually need that specific request, I just pulled a request from the "test RPC as JSON API" page.

simonmcl commented 3 years ago

@aklowther I can't speak for that document. It might be outdated, or as I mentioned above it might be something thats only available when using your own node. You can use the Open API docs to experiment with different RPC calls.

Since theres no issue i'll close this and the PR