Go-Ethereum

是否有在光照模式下執行 Mist 的簡單分步指南?

  • July 27, 2017

我在 Reddit、Youtube 上搜尋過……但我猜我一直在做錯事。我下載了最後一個 Mist,我希望捆綁的 Geth 節點是輕量級的,並且每次打開 Mist 時都保持輕量級客戶端。按照網路上的教程,我只需操作終端並輸入“geth –light”,每次它都會顯示“-bash:geth:command not found”。是不是我做的不對?請有人用愚蠢的語言向我解釋我必須做什麼?

我有一台裝有 MacOS 10.12.5 的 2012 MB Pro。謝謝

與 Mist 捆綁的 geth 安裝無法通過命令行上的“geth”訪問。這就是讓 Mist 作為輕客戶端執行的方法。

單獨安裝geth。在 Ubuntu 上:

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum

在 Mac 上應該是:

brew update
brew tap ethereum/ethereum
brew install ethereum

現在從命令行以輕量模式執行 geth:

geth --syncmode "light" --cache 1024

一旦啟動,正常打開 Mist,它應該會自動連接到 geth light 實例。第一次執行此操作時,它將重新下載整個區塊鏈並將其放在單獨的文件夾中。對於 Ubuntu 上的我來說,這是 ~.ethereum/geth/lightchaindata,而正常的鏈數據是 ~.ethereum/chaindata。第一次需要幾分鐘來重新下載區塊鏈(但它比正常快得多),之後,它應該會在幾秒鐘內同步到鏈上。

您會考慮改用專用網路嗎?
同步主網路可能需要幾天時間,我認為如果您只是想測試技術,則沒有必要。

要在私有網路上執行霧,只需將 ipc 路徑設置為your_home_dir/Library/Ethereum/geth.ipc

The complete commands for me:

mkdir privchain// 用於儲存您的區塊鏈數據

geth --datadir privchain --ipcpath /Users/tina/Library/Ethereum/geth.ipc --networkid 123

不指定網路 ID,預設情況下將連接到主網路。

引用自:https://ethereum.stackexchange.com/questions/19297