La red privada de Windows 10 no se puede conectar a otros pares, geth: 1.8.11

Información del sistema:

Geth version: Geth/1.8.11-unstable
OS & Version: WINDOWS10

I modified the main net Genesis config parameters in DefaultGenesisBlock in genesis.go,
and I replaced the MainnetBootnodes parameters with one line: enode://a4574b52d5ebc4414f1a55e656f66ca5647d891d5989e2bc3660141ec2c3fbed2dcd9bd50fc050915e3b8b96527f3fd9a8dfbcbdc9de3255fb948148ccd67603@192.168.2.210:30303

para el propósito de aprendizaje.

Ejecute geth.exe en 192.168.2.210 y 192.168.2.52.
El geth.exe en 2.52 no puede conectarse a eso en 2.210.
Son la misma versión que yo construyo. Cmd es "consola geth.exe" sin otros parámetros.
Intenté usar admin.addPeer()en geth y también fallé.
neto

{
  listening: true,
  peerCount: 0,
  version: "1",
  getListening: function(callback),
  getPeerCount: function(callback),
  getVersion: function(callback)
}
No puede modificar el código fuente, solo puede usar --bootnodesflag.

Respuestas (2)

Supongo que usaste admin.addPeer("192.168.2.252").

Para conectarse con otros pares, necesita NodeUrl.

Prueba esto, ve al primer nodo cmd

admin.nodeInfo.enode

te da la URL del enodo. Cópielo y en el siguiente nodo par use cmdadmin.addPeer(NodeUrl)

Sí, traté de usar admin.addPeer. But, still no peers: ( 6a606....57fb is my another pc with IP 192.168.1.101, and it is running a geth.exe ) > admin.addPeer("enode://6a606a7a6a81e2a48b8f00b3b24fcd0a6732f3b1ca7f86eb51087c24e7578cebb9638d7340a08534a2f396a9587a881f8ab31bfb86139abeeff f5696766f57fb@192.168.1.101:30303 ") true > net { listening: true, peerCount: 0, version: "1", .... } > admin { datadir: "E:\\geth\\data", ...., peers: [] , agregarPeer: función(), .... } >

Lo resolví por mi cuenta. Se debe a la bifurcación dao. La validación de datos adicionales no pasa porque los pares no pueden conectarse entre sí.