I am working on Mac OSX. I have the CL tools installed and I can start one geth client on a private network. Mining works. Wallet features work. I am able to successfully mine eth and deposit it into the primary/default account of Geth1.
Then I run another instance of geth. Same network id, same genesis JSON, different data directory. I removed the runtime rpc flags. I am unable to get the Geth2 client to connect and mine on the same network.
NodeInfo on Geth1 and Geth2 shows the IP address as null. I'm not sure where that is supposed to be populated or if it is the culprit.
Can anyone provide a pointer what I might look at next to make the second client connect to the network started by the first?
Here is the command line for each:
Starting console:
geth --genesis /Users/myuser/ethereum/TestNetOne/TestNetOne-Genesis.json --nodiscover --maxpeers 3 --datadir "/Users/myuser/ethereum/TestNetOne" --identity "TestNetOne" --networkid 21863 --rpc --rpcport "8080" --rpccorsdomain "" --port "30304" --rpcapi "db,eth,net,web3" console
Second console:
geth --genesis /Users/myuser/ethereum/TestNetOne/TestNetOne-Genesis.json --nodiscover --maxpeers 3 --datadir "/Users/myuser/ethereum/TestNetOne/data_dir1" --identity "TestNetOne" --networkid 21863 console
The second console also has a static-nodes.json in its data_dir with the following:
[
"enode://482238402e50522795112b309891111ce933d20ebebee712c687a3ea3479f8b441532019bd99a6451549[email protected]:30304",
]
That enode is the enode Id of the first geth process.
Thanks in advance!
--verbosity=6
and post the logs.