0

系统信息

Geth Version: 1.7.3-stable

Git Commit: 4bb3c89d44e372e6a9ab85a8be0c9345265c763a

Operating System: linux

预期行为

将 Mist 与本地专用网络连接

实际行为

我输入命令:

geth --datadir ~/private_network init ~/private_network/genesis.json

geth --datadir ~/private_network --networkid 3131 --ipcpath ~/private_network/geth.ipc console 2>~/private_network/console.log

我运行 Mist 但我有一个错误“地址已在使用中”即使我杀死使用端口 30303 的进程我也有相同的结果

回溯

~/.ethereum/testnet/geth/ethash 计数=3

信息 [12-16|12:05:37] 为 ethash DAG 启用磁盘存储 dir=~/.ethash count=2

INFO [12-16|12:05:37] 初始化以太坊协议版本="[63 62]" network=3

INFO [12-16|12:05:37] 加载最新的本地标头编号=797369 哈希=81c88e…3044c5 td=587702682055345

INFO [12-16|12:05:37] 加载最近的本地完整块号=0 hash=419410…ca4a2d td=1048576

INFO [12-16|12:05:37] 加载最近的本地快速块编号=761870 哈希=08735b…e597b9 td=571350456833753

INFO [12-16|12:05:37] 已加载本地事务日志事务=0 已删除=0

INFO [12-16|12:05:37] 升级链索引类型=bloombits百分比=79

INFO [12-16|12:05:37] 重新生成的本地交易日志交易=0 帐户=0

信息 [12-16|12:05:37] 启动 P2P 网络致命:启动协议栈时出错:监听 udp:30303:绑定:地址已在使用中

4

1 回答 1

4

您正在连接到 Ropsten 网络 (network=3)。您必须使用该--network选项将您的网络 ID 传递给 Mist,并使用 .ipc 文件提供您的 .ipc 文件的路径--rpc

$ ./Mist.exe --network 3131 --rpc ~/private_network/geth.ipc

完整的命令行选项:

$ ./Mist.exe --help

Usage: Mist.exe --help [Mist options] [Node options]

Mist options:
  --mode, -m              App UI mode: wallet, mist.  [string] [default: "mist"]
  --node                  Node to use: geth, eth        [string] [default: null]
  --network               Network to connect to: main, test
                                                        [string] [default: null]
  --rpc                   Path to node IPC socket file OR HTTP RPC hostport (if
                          IPC socket file then --node-ipcpath will be set with
                          this value).                                  [string]
  --swarmurl              URL serving the Swarm HTTP API. If null, Mist will
                          open a local node.
                                     [string] [default: "http://localhost:8500"]
  --gethpath              Path to Geth executable to use instead of default.
                                                                        [string]
  --ethpath               Path to Eth executable to use instead of default.
                                                                        [string]
  --ignore-gpu-blacklist  Ignores GPU blacklist (needed for some Linux
                          installations).                              [boolean]
  --reset-tabs            Reset Mist tabs to their default settings.   [boolean]
  --logfile               Logs will be written to this file in addition to the
                          console.                                      [string]
  --loglevel              Minimum logging threshold: info, debug, error, trace
                          (shows all logs, including possible passwords over
                          IPC!).                      [string] [default: "info"]
  --syncmode              Geth synchronization mode: [fast|light|full]  [string]
  --version, -v           Display Mist version.                        [boolean]
  --skiptimesynccheck     Disable checks for the presence of automatic time sync
                          on your OS.                                  [boolean]

Node options:
  -  To pass options to the underlying node (e.g. Geth) use the --node- prefix,
     e.g. --node-datadir

Options:
  -h, --help  Show help                                                [boolean]
于 2017-12-17T17:24:06.617 回答