I am running two full geth (1.8.23-stable) nodes syncing with the mainnet. The first node was started early, and therefore has more peers. My intention is to copy over all the peers from the first node to the second node to start syncing faster. I ran admin.peers.forEach(function(value){console.log(value.enode)}) on the first node to collect all the peers, and tried to add them to the second node with admin.addPeer(peer), where peer iterates over the list of peers collected from the first node. It returns true for all the addPeer() calls. However, in the end, no peer got added, and admin.peers remained unchanged. Any idea why adding peer is not working on the second node?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.