簡體   English   中英

關於創建到私有區塊鏈(以太坊)的 Mist 連接的問題

[英]Issue on creating a Mist connection to a private blockchain (ethereum)

再會!

我正在嘗試將 Mist 連接到我在以太坊上創建的私有區塊鏈。 我一直在按照以下確切順序執行以下步驟。

  1. 使用命令啟動創世區塊:- geth --datadir=./mychain/ init ./genesis.json
  2. 使用命令啟動geth --datadir=./mychain鏈:- geth --datadir=./mychain
  3. 當上述命令獲取“IPC端口已打開”時,雙擊並打開Mist。

澄清 :-

mychain是一個空文件夾,我希望將區塊鏈數據存儲到其中。 我在Windows系統中執行所有這些操作。

第一個命令成功運行並顯示“成功寫入創世狀態”。 第二個命令似乎停止並說“IPC 端點已打開”而沒有任何錯誤。 但是當我嘗試打開 Mist 時,它說無法運行以太坊,因為有另一個節點正在運行。

我對調試的發現:- 在創世區塊中,我提到了 chainID 為 1990 並且在輸出中的第二個命令中調用了相同的值。 所以我確定創世區塊已經啟動。 但是,當我檢查 Mist 文件夾中的 node.log 文件時,我注意到 Mist 正在尋找 chainID = 1。不確定這是否是問題,但我無法讓 Mist 連接到我的私人網絡。

我將不勝感激在這個問題上的任何幫助。

謝謝

Mist 有自己的命令行參數來指定數據位置、密鑰存儲等。如果你自己啟動geth ,你需要添加--rpc選項,或者如果你想使用--node-datadir選項Mist 的嵌入式版本。

 $ ./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 (eg Geth) use the --node- prefix, eg --node-datadir Options: -h, --help Show help [boolean]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM