Verifying your setup
Some simple steps to make sure your node is running and is in fact to connect to the network correctly.
Before you can actually start validating, it is recommended that you make sure your node is connected to the network, sees other participants, is receiving updates and is able to respond to RPC calls.
Logs
First check the logs. Your node will likely start out by synchronizing with the general network, and after a while start getting blocks in real time. To get the logs out of docker, you will need to run:
You can run docker logs --follow <your_nodes_name>
to get the output in real time.
To get the last 24h of logs as a file, use the following command:
docker logs --since 24h <your_nodes_name> > file.log 2>&1
This should return some lines, including the initial ones starting with “Syncing” and later ones with “Idle”. Importantly either of these words should be followed by “(XX peers)” where “XX” is a number that should be positive. An example of a healthy result of this command follows.
In some cases (if the node is already synced) the logs might look like this:
Which is also a sign of a healthy node.
If you see Failed to update handler: NoP2pAddresses
in the logs don’t be alarmed: the node will get the P2P address soon.
Endpoints
Next you should check whether the RPC and WebSocket endpoints are externally accessible. They should be accessible for archivists and categorically should not be accessible for validators.
The tests should preferably be run on a machine outside of the local network containing the node, although many of them should give the same results as long as they are not run on the same machine.
RPC
To check whether RPC calls work execute
using your own address instead of example.com, obviously. For nodes without a DNS address you should omit the https://
. This should return an extensive JSON response containing many RPC call names for archivists and some kind of error (depending on your exact setup) for validators.
Additionally check whether unsafe RPC call are possible to execute on externally available nodes:
This should return some kind of error on both archivists and validators.
Finally check whether you can perform unsafe operations on validators internally. There are multiple ways this could be done, for this one we assume you have ssh access to the machine:
In a separate terminal on the same machine run:
This should return a huge JSON response for validators and at most an error for archivists.
WebSocket
The easiest way of checking correct websocket accessibility is to attempt connecting using one of the polkadot.js instances. Any should work, but we recommend the appropriate wallet AlephZero is hosting, i.e. https://test.azero.dev/ for testnet and https://azero.dev/ for mainnet, to minimize confusion. Once there, click on the AlephZero logo, and then on the “Development” tab in the list that appears. In the “Custom endpoint” field fill your address in the form:
After a moment the usual view of a AlephZero connected wallet should appear, indistinguishable from any other archivist, for archivists. For validators this should get stuck on loading and never connect.
Last updated