5

I'm having so much trouble getting geth to talk to a private blockchain of Parity nodes. Here is where I am right now:

I have fired up geth with a custom data director and a genesis file that think should be a match for the Parity chain spec file.

But geth does not detect the Parity peers. So I add them manually using the JS console. The command returns "true" but then admin.peers shows no peers.

> admin.addPeer("enode:<string>:<port>")
true

> admin.peers
[]

Can anyone think of why this might be?

4
  • 1
    There is no admin module in Parity. Just use reserved-peers. ethereum.stackexchange.com/a/25384
    – q9f
    Aug 29, 2017 at 11:33
  • 1
    @5chdn I am not asking about Parity. My question is about geth. I am trying to get that geth node to connect to a network of Parity nodes.
    – stone.212
    Aug 30, 2017 at 9:04
  • 1
    I'm sorry, this somehow showed up in my parity filters :)
    – q9f
    Aug 30, 2017 at 9:42
  • Are you sure you want to connect to a peer in the right network? Maybe --datadir wasn't set correctly. Apr 26, 2021 at 21:42

2 Answers 2

3

Can you make sure when you use admin.addPeer() both the above instances are running?

You can either use geth instance or geth console. (use ipc: ~your datadir/... after the above command if your ipc is in a non-default folder).

Also if both these two nodes are on the same machine, you can use 127.0.0.1 as the IP address if the external IP address doesn't work.

Give it try and let me know.

1
  • 1
    Good ideas but the problem is that I was trying to do the impossible.
    – stone.212
    Sep 28, 2017 at 7:16
1

The solution to this is that geth isn't going to connect to the private Parity network I was trying. Here is a really great answer:

geth not connecting to private network

Your Answer

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

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