You are viewing a single comment's thread from:

RE: Truffle实战指南

in #starnote4 years ago

在geth私有节点的基础上,另起一个节点,使用同样的创世区块设置。

  1. 新建目录:private2
  2. init.json //创世区块要一致
  3. geth init init.json --datadir .
  4. geth --datadir . --port 30302 --nodiscover --ipcdisable console
  5. net.peerCount //查看相连的节点
    admin.nodeInfo.enode //查看节点信息
    "enode://4b4f7eacbcef0eeffec@100.6.2.210:30302?discport=0"