以太坊系列之十: 使用Etherum Wallet(Mist)连接私有链

使用Etherum Wallet(Mist)连接私有链

直接启动Mist的时候,钱包会直接连接公有链,而在开发过程中,我们希望连接私有链.

首先启动geth

先启动geth,连接好私有链.
```
geth.exe --datadir=d:/privnet --networkid 89120348581 
```
我在windows下,ubuntu,mac等系统也类似

启动钱包(Mist)

不能直接启动,要通过--rpc参数来让其认为geth已经启动了,这样钱包就不会自己去尝试启动geth了.

"C:\Program Files\Ethereum-Wallet\Ethereum Wallet.exe" --rpc "\\.\pipe\geth.ipc"

还有要注意的是,rpc参数最好是ipc,如果是http/ws等rpc通道,Mist会认为不安全,就不能进行转账等操作.

posted on 2017-08-03 11:57  baizx  阅读(4901)  评论(0编辑  收藏  举报