In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about the construction of go-ethereum wallet environment and the example analysis of synchronous test chain block. many people may not understand it very well. in order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
At the request of the company, to access ETH, this article explains how to build go-ethereum in ubuntu environment
Environmental requirements:
Linux system: ubuntu, 8 GB memory, 500 GB hard drive (SSD is better), 4 vCPU (2 v scraping along)
The current test chain block data size: 8.8G, the author's configuration synchronized nearly a morning (10m bandwidth)
Related dependencies:
Go-version:1.10.1
Git-version:2.7.4 2.0 or above is acceptable.
Geth-version:1.8.9
1. Install git# Ubuntu install 2.7.4sudo apt-get install git2 by default. Install gowget https://studygolang.com/dl/golang/go1.10.1.linux-amd64.tar.gztar-zxvf go1.10.1.linux-amd64.tar.gzmv go/ usr/local/# to add the environment variable echo "export GOROOT=/usr/local/go" > / etc/profileecho "export PATH=$PATH:/usr/local/go/bin" > > / etc/profilesource / etc/profile3. Install geth (go-ethereum) git clone https://github.com/ethereum/go-ethereum.gitcd go-ethereum/gmake all# error "gmake: command not found" # solution: cd / usr/bin & & sudo ln-s make gmake# error vendor/github.com/karalabe/hid/hidapi/libusb/hid.c:444: undefined reference to `libiconv_open' vendor/github.com/karalabe/hid/hidapi/libusb/hid.c:456: undefined reference to `libiconv 'vendor/github.com/karalabe/hid/hidapi/libusb/hid.c:471: undefined reference to `libiconv_close' collect2: ld returned 1 exit status util.go:45: exit status 2 exit status 1 make: * [geth] Error solutions: mv / usr/local/include/iconv.h / usr/local/include/iconv.h.backecho "export PATH=$PATH:/home/adamson/go-ethereum/build/bin" > > / etc/profilesource / etc/profile
Please make sure that you have installed the above three items before continuing with the following.
4. Synchronous Test chain (rinkeby) data geth-syncmode "fast"-datadir "/ currency/eth/data-sync/test-rinkeby"-rinkeby-cache=512 console
Command description:
Fast fast synchronization mode (only synchronize block headers, not block blocks)
-- the directory where datadir synchronizes the data (the directory needs to be added manually, and the directory name is random)
-- rinkeby synchronizes data on the rinkeby test chain
-- cache cache value. Minimum 16mb. Default is 128.
Console is run on the console.
Depending on everyone's needs, the synchronization commands used will vary.
Correctly synchronize blocks, as shown below:
Please be patient. It will take a while.
Block synchronization is successful, as shown below:
If the words in the red box indicate that the synchronization has been successful, congratulations on the completion of data synchronization!
After reading the above, do you have any further understanding of the construction of the go-ethereum wallet environment and the example analysis of the synchronous test chain block? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.