geth在同一电脑建立双节点私有链,注意事项:
1、端口设置不一样;
2、数据文件夹不一样;
3、启动参数也要有所差异;
例如:节点一:
geth --datadir "./" init genesis.json
geth --datadir "./" --port 30303 --nodiscover console
节点二:
geth --datadir "./" init genesis.json
geth --datadir "./" --port 40404 --nodiscover --ipcdisable console
多一个参数:--ipcdisable
否则会报错:Erro starting protocol stack:Access is denied

网友评论