Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running peer.js #436

Open
jjh221 opened this issue Jan 24, 2021 · 6 comments
Open

Running peer.js #436

jjh221 opened this issue Jan 24, 2021 · 6 comments

Comments

@jjh221
Copy link

jjh221 commented Jan 24, 2021

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.

@TheHolyRoger
Copy link
Collaborator

Can you share the output of https://yourexplorer/api/getpeerinfo ?

Hide anything sensitive if you need to.

@jjh221
Copy link
Author

jjh221 commented Jan 25, 2021

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?

@TheHolyRoger
Copy link
Collaborator

@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"

@lurchinms
Copy link

lurchinms commented Apr 28, 2021

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

@lurchinms
Copy link

lurchinms commented Apr 28, 2021

That's the issue missing port numbers.....
Need to write a NULL

@G33kNoob
Copy link

where did i get this ? must i install other tool like insight explorer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants