Private network query. (connecting 2 nodes, one eth and another geth)

Hi,

I've been trying to connect 2 nodes(one eth, one geth) to a private network. Both the nodes are in my local area network. I've done the following:

Node1-> eth
Node2 -> geth


1. Started Node1
Node1:
eth --private 12345678 --network-id 12345678  --db-path /tmp/eth/12345678/ethereum -i
2. Started Mining on this node:
web3.admin.eth.setMiningBenefactor(web3.eth.accounts[0])
web3.admin.eth.setMining(true)
.
.
.
var primaryAccount = web3.eth.accounts[0]
web3.eth.getBalance(primaryAccount)
4614531250000000000000'
3. Started Node2
Node2:
geth --networkid 12345678 --datadir=/tmp/eth/12345678/ethereum --verbosity 6 --ipcdisable --port 30302 --rpcport 8102 console 2>> /tmp/eth/12345678/log.log

4. Adding a peer on Node2:
Here I get the Node1 enode address and then do this on Node2
admin.addPeer("enode://<id>@<lanip>:30303")
Here(on Node2), when I quickly do a
net.peerCount
I find it becomes '1' for a second and then it becomes '0' again

Would really appreciate if someone tells me where I am going wrong.

Comments

  • jaguargjaguarg Member Posts: 15
    Hi saurabhchakrabarti, have you made any progress on this? This is a setup I would like to try as well. How far did you get?
    How did you go about funding your accounts in this private deployment?
Sign In or Register to comment.