introductionTopaz, the first mainnet configuration testnet of Ethereum 2.0 released by Prysmatic Labs, one of the Ethereum 2.0 client building teams, was finally officially launched on April 15. The testnet is aimed at testing the Ethereum 2.0 Phase 0, that is, implementing the beacon chain and staking. As early as January last year, Ethereum conducted an AMA [1] (Ask Me Anything) on Reddit, which detailed the progress of Ethereum 2.0. At that time, it was expected that the official launch of Phase 0 would be in November 2019 or January 2020. However, it is now May 2020, and it is still in the testing phase of Phase 0, and the official launch time has not yet been determined. It can be seen that Ethereum is similar to other projects. The forecast of progress is too optimistic, and the estimated launch time can only be heard and counted for fun. I participated in the staking of Prysmatic Labs' testnet in October last year, and submitted several issues in the official discord. The version at that time had many bugs. However, more than half a year later, I saw reports that their testnet has more than 25,000 validators participating, which is indeed more than I expected. I didn't expect that staking in the test phase would be so popular. It seems that the community is paying close attention to Ethereum 2.0. So I participated in this testnet with curiosity. There were some pitfalls in the process of starting staking, which I will record here for your reference. Without further ado, let’s get to the point. GlossaryLet me first explain a few technical terms.
Preparation1. MetamaskMetamask is an ETH wallet based on a browser plugin. Official website: https://metamask.io/ Tutorial: http://bjiebtc.com/qianbao-metamask-shiyongjc/ Follow the tutorial until you have memorized the mnemonics and entered the main interface. Then click the network switch button above. The default is the main network. Here you need to switch to the Goerli test network, as shown below: Switch to the Goerli test network 2. HostIt can be run on personal computers, local servers, and cloud servers. The official minimum configuration requirements are as follows:
Be sure to meet this minimum requirement! If you run the beacon chain client on a host with 1GB of RAM and 2GB of swap (tested last October), it will exit with an error after a certain period of time. Don't ask me how I know! Since the operation must be kept online 24/7, it is recommended to rent a cloud server for staking. The configuration must be at least 2 cores and 4G. Join Staking!Refer to the official documentation: https://prylabs.net/participate 1. Download the codeCreate any new directory and execute the following code after entering: git clone https://github.com/prysmaticlabs/prysm && cd ./prysm Just wait until the download is complete. 2. Get the ETH needed for testing - GöETHGöETH is the ETH used by the Goerli test network. Remember that the ETH on the test network has no value and is only used for testing. Click step 2 in the official document, and then click the METAMASK icon to connect to the wallet: Connecting to metamask A metamask pop-up window will appear, click Authorize. Next, you will be prompted that you need at least 32 GöETH to participate. Click Need GöETH and click Yes please in the pop-up window. Get 32 GöETH 3. Generate the validator’s keyExecute the following code to create an account ./prysm.sh validator accounts create During the creation process, you will see INFO accounts: Enter a password: then enter the password and remember it. Then press Enter to successfully create the account. After completion, you will see the following characters. Copy the 0x... part. =======================Raw Transaction Data======================== 0x....... ........... ........... =================================================================== 4. Send validator depositThe copied content above contains the information of the validator account. Paste the content into the input box of step 3 in the official document, then click the make deposit button in step 5, and then confirm the transaction in the metamask pop-up window. Paste the content you copied in the previous step here Send deposit transaction 5. Run the beacon chain and validator clientThe official documentation states this step before sending the validator deposit, but it doesn’t matter if it’s at the end. Once verification begins, the beacon chain client and the validator client need to be online 24/7 to perform staking, otherwise they will be punished. Therefore, it is necessary to ensure that both processes continue to run after closing the terminal. The common methods to keep the process running after closing the terminal are nohup or screen. Since the authenticator client needs to enter the password set when the account is created to continue, and nohup will exit the authenticator client because the password cannot be entered, screen is used here. Open the client through screen
screen -S beacon_chain
./prysm.sh beacon-chain
screen -r beacon_chain Open the validator client in the same way, create a new screen session and change step 2 to ./prysm.sh validator and enter the password. If you forget the name of the screen session you created, run screen -ls to view all created screen sessions. Precautions
refer to
|
<<: Live Preview | BTC halving night, come and witness history together!
>>: Bitcoin miners earned about $413 million in April, up 8% from the previous month
Marriage was recognized by the social system at t...
Monero has released a new version including a cor...
The zygomatic bone is located in the front of the...
Teeth are based on the kidneys, which means that t...
Can Circle Win the Stablecoin Wars? Source: Decry...
Human beings are social animals. We have family a...
What kind of face will make a man unlucky in marr...
Each of us may have one or several moles somewher...
Unhappy marriage and good career 1. Women with wh...
On May 18, 2020, the Hangzhou Intermediate People...
People often joke that they are angels with broke...
On the evening of June 6, Bitcoin once again beca...
Palmistry is also an important part of physiognom...
Tencent Yujian Threat Intelligence Center said th...
In physiognomy, the nose represents the palace of...