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

net.peerCount is 0 for QBFT private network with 5 validator nodes #1690

Open
HendAmeer opened this issue Jan 20, 2024 · 1 comment
Open

Comments

@HendAmeer
Copy link

System information

Geth version: [email protected]
OS & Version: Linux

Expected behaviour net.peerCount is 5

Actual behaviour net.peerCount is 0

Steps to reproduce the behaviour QBFT tutorial

Backtrace

[backtrace]

When submitting logs: please submit them as text and not screenshots.

@PadaliaIsha
Copy link

I faced the same issue but found a solution. In the node-0 folder, run the following command:

geth attach data/geth.ipc

admin.addPeer("enode://[email protected]:port?discport=0&raftport=port");

If you have 5 running nodes, you need to add 4 of them as admin peers inside node-0. After that, you can run:

net.peerCount It will output 4, indicating that all the nodes are in sync mode.

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

2 participants