I am trying to add static peers by static-nodes.json file but with this version it does not work. What is the way to do it ?

If I add peers with admin.addPeer() it works, but if I am using --syncmode light it doesn't.

Also, I am trying to use --mine in the command line and it does not work neither. It stops in INFO [02-05|16:45:52.368] Commit new mining work. It just runs if I add miner.start() in the console.

UPDATED: adding peers by static-nodes.json works but it doesn't if it is a light node

1 Answer 1


Are you following this structure for your static-nodes.json file? Is your file in the datadir directory? Can the user you are running geth with access to the datadir directory?


Did you try to connect it manually? Does it work?


Is your port 30303 opened on your firewall? Can you reach it from outside?

About the miner, what happens? When you do --mine and you type eth.mining in your console, does it return false?
Is by any chance your node generating the DAG? Because it won't mine until the DAG is generated

  • I have added more datails in the question. The structure of the json file is the same. eth.mining is true, but the console is stuck on Commit new mining work. It does not happen if I use miner.start() Feb 5, 2019 at 16:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.