itsnoproblem / pokt-tools

a rewards explorer for Pocket Network node runners
https://pokt.tools
MIT License
14 stars 9 forks source link

Node not responding with pokt-calculator #36

Open kaelabbott opened 2 years ago

kaelabbott commented 2 years ago

Hey, im trying to connect my node to the pokt-caculator but it's not working... I have setup a network with the pokt-calculator and my pocket node, I tested it to verify if they are seeing each other and it worked but when I run the docker-compose and try to test it via web the node height output is 0.

bellow ill leave my code of the docker-compose that i'm using

`version: "3"

services: monitoring-service: container_name: pokt-calculator-api ports:

networks: default: external: true name: node-network`

itsnoproblem commented 2 years ago

Hey @kaelabbott - sorry for the very late reply. A little clarification:

RPC_URL should point to a url that your browser can access (i.e. a public url). For example if you run this on your server at mynode.com, the "monitoring-service" will be listening at mynode.com:7878 so your RPC_URL should be https://mynode.com:7878

This is the url the react app will make requests to. You can verify the correct url by checking in your browser, eg https://mynode.com:7878/height

To clarify further: on pokt.tools this RPC url is set to https://api.pokt.tools which can be verified by visiting https://api.pokt.tools/height

Hope that helps!