I followed all the steps of adding trusted and static peers:
- Manually adding the peers to configuration file
config.toml
- Using
addTrustedPeers
andaddPeers
of the geth console - set the
--nodiscover
flag
The net.PeerCount
returns 0 everytime I try to see if the node is connected to any of the added peers.
I also checked the security groups and firewall just to make sure nothing is being blocked.
Any idea how to fix that issue?
Note the command to start geth client is as follows:
sudo geth --mainnet --syncmode full --datadir /data/ethereum --http --http.addr=0.0.0.0 --http.port=8545 --http.vhosts=* --http.api=admin,personal,eth,net,web3,txpool --authrpc.vhosts=* --authrpc.addr=0.0.0.0 --authrpc.port=8551 --authrpc.jwtsecret=/home/ubuntu/.setup/secret/jwtsecret --nodiscover --config /data/ethereum/config.toml