测试中

初始块
{

   "config": {
        "chainId": 12345,
        "homesteadBlock": 0,
        "eip155Block": 0,
        "eip158Block": 0
    },
    "coinbase" : "0x0000000000000000000000000000000000000000",
    "difficulty" : "0xbffff4",
    "extraData" : "0x123456",
    "gasLimit" : "0xffffffff",
    "nonce" : "0x0000000000000042",
    "mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
    "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
    "timestamp" : "0x00",
    "alloc": { }
}
geth --datadir  ./data init genesis.json 
geth --datadir  ./data --networkid 12345 --rpc --port 3344 console
admin.nodeInfo
{
  enode: "enode://eae1006856b577d37c67dceaa5e60f03631afa0ada98af4e7dbeb17cfdb8a33a810b48c9a7901f9c314bcfd2e9ff3401d97a294696f8803f592bb41199026187@[::]:3344",
  id: "eae1006856b577d37c67dceaa5e60f03631afa0ada98af4e7dbeb17cfdb8a33a810b48c9a7901f9c314bcfd2e9ff3401d97a294696f8803f592bb41199026187",
  ip: "::",
  listenAddr: "[::]:3344",
  name: "Geth/v1.6.7-stable-ab5646c5/linux-amd64/go1.8.1",
  ports: {
    discovery: 3344,
    listener: 3344
  },
  protocols: {
    eth: {
      difficulty: 107948614,
      genesis: "0xb5f3aee74f0eb8fa11a3d36064c5fbb0605615d1926b3ac6f09366ca29d1880d",
      head: "0xe3ba8b1ca97423af4ed73467562b574d25565d966ff5bf14998e329da2f0ea6e",
      network: 12345
    }
  }
}


172.18.0.2

geth –identity “haha” –datadir ./data/00 –networkid 12345 –rpcapi “db,eth,net,web3” –port 2220 –rpcport 3330 –bootnodes “enode://29b5a3de57f9d004568a78ffc7d6b23b3448487056d45183b8e316e4eebd8f1b941637a1ecfb5dbca6a80f4d619b4b7c2a73046c6358b11f6169de878847be84@172.18.0.4:2220”console

admin.addPeer(“enode://29b5a3de57f9d004568a78ffc7d6b23b3448487056d45183b8e316e4eebd8f1b941637a1ecfb5dbca6a80f4d619b4b7c2a73046c6358b11f6169de878847be84@172.18.0.4:2220”)

你可能感兴趣的:(以太坊,docker-工具)