Geth 1.6.7。 我已经使用这个手册带引导节点的以太坊本地集群
https://github.com/ethereum/go-ethereum/wiki/Setting-up-private-network-or-local-cluster
看起来很简单
- 运行bootnode
./bootnode -nodekeyhex dc90f8f7324f1cc7ba52c4077721c939f98a628ed17e51266d01c9cd0294033a
UDP监听向上
自我= e节点:// 890b6b5367ef6072455fedbd7a24ebac239d442b18c5ab9d26f58a349dad35ee5783a0dd543e4f454fed22db9772efe28a3ed6f21e75674ef6203e47803da682 @ [:]:30301
运行在本地机器上2个geth`s
GETH --bootnodes e节点:// 890b6b5367ef6072455fedbd7a24ebac239d442b18c5ab9d26f58a349dad35ee5[email protected]127.0.0.1:30301 --datadir” ./node1" --port 30310 --rpcport 8110 --ipcdisable --networkid 1024 --cache = 512 --rpcapi个人,分贝,ETH,网,WEB3 --rpc控制台2 >> ./node1/geth1.log
GETH --bootnodes 的eNode://890b6b5367ef6072455fedbd7a24ebac239d442b18c5ab9d26f58a349dad35ee5[email protected]127.0.0.1:30301 --datadir” ./node1" --port 30311 --rpcport 8111 --ipcdisable --networkid 1024 --cache = 512 --rpcapi个人,分贝,ETH,网,WEB3 --rpc控制台2 >> ./node1/geth1.log
通过控制台检查
同行admin.peers []
正如你所看到的节点看不到对方。我做错了什么?
谢谢。