I am attempting to have a second node sync up with an original node.
I had previously synced two nodes from the get-go but am unable to add a peer to an already running blockchain. In other words I want to add a peer to an already running network either for the first time or after a disconnect.
I have instantiated and started the chains with the same commands
geth --datadir test/ --maxpeers 55 --nodiscover init genesis.json
geth --datadir test/ --networkid 1234321 console 2>> myEth.log
And they have the same genesis.json files
{
"config": {
"chainId": 1234321,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"alloc" : {},
"coinbase" : "0x0000000000000000000000000000000000000000",
"difficulty" : "0x20000",
"extraData" : "",
"gasLimit" : "0x2fefd8",
"nonce" : "0x0000000000000042",
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00"
}
What am I doing wrong? Is there some command I must use to make them sync and peer?
I have already tried admin.addPeer()