explorer
explorer copied to clipboard
Running peer.js
When running
sudo node scripts/peers.js
I get
Saved peers missing ports or country, dropping peers. Re-reun this script afterwards.
Other explorers do not have this issues.
Can you share the output of https://yourexplorer/api/getpeerinfo
?
Hide anything sensitive if you need to.
Hey thanks for the reply. Yea the api getpeerinfo works. What information should I be looking for?
Its strange that one explorer the network tab will work sometimes and show information but on another it will not work and gives me the message above when running peers.js. Both are created from same snapshot. Database error?
@jjh221 have you upgraded from any previous versions? Database should be fine as the script will drop all peers from the database when that message is displayed.
It's more likely that the script keeps adding peers with missing ports or country fields, but I need the output of getpeerinfo
to understand why
You need to look at all the peers on getpeerinfo
and check the format of their "addr" fields - they should be: "ip:port"
I have the same issue. Here is my data: [{"id":0,"addr":"159.203.80.106","addrlocal":"209.145.58.82:54492","addrbind":"209.145.58.82:54492","services":"000000000000040
That's the issue missing port numbers..... Need to write a NULL
where did i get this ? must i install other tool like insight explorer?