geth在同一電腦建立雙節(jié)點(diǎn)私有鏈,注意事項(xiàng):
1呜舒、端口設(shè)置不一樣锭汛;
2、數(shù)據(jù)文件夾不一樣袭蝗;
3唤殴、啟動(dòng)參數(shù)也要有所差異;
例如:節(jié)點(diǎn)一:
geth --datadir "./" init genesis.json
geth --datadir "./" --port 30303 --nodiscover console
節(jié)點(diǎn)二:
geth --datadir "./" init genesis.json
geth --datadir "./" --port 40404 --nodiscover --ipcdisable console
多一個(gè)參數(shù):--ipcdisable
否則會(huì)報(bào)錯(cuò):Erro starting protocol stack:Access is denied