• P1 Install Go in Linux
  • P2 Set up the go – ethereum
  • P3 Build the underlying technology of blockchain
  • P4 Blockchain technology and application
  • P5 Build Hyperledger Fabric
  • P6 Combat blockchain project,

We must strike before the dinosaurs wake up!

Set up the go – ethereum

Join the list of domain name collectors according to blockchain domain name trends: Gohutool.com, also “confused enough”. Let our domain name breakthrough: Goblockchain.top.

Why is it GO? Maybe it’s the voice of the arcade game Dinosaur Kombat when I was a kid. GO! We must strike before the dinosaurs wake up! At that time, we only remember the game “Enough enough”. When we grow up, we know: Oh, it is called Dinosaur Kombat!

Now to add to the fun and humor, let’s get down to business.

Download the go – ethereum

Note: The go-Ethereumv1.8.7 version is go1.10.3. Don’t find out why it’s stuck. Practice first and troubleshoot later.

You need to go to the go compilation location, /root/go/src, download Go-Ethereum, and decompress the compilation.

cdhttps://github.com/ethereum/go-ethereum/archive/v1.8.7.tar.gz/root/go/SRC wget tar ZXVF v1.8.7. Tar. Gz mv Go - ethereum - 1.8.7 / go - ethereumcd go-ethereum/
Copy the code

Building GEth requires Go (Go 1.10.3 or higher is recommended) and a C compiler. You can install them using your favorite package manager. After installing the dependencies, run them

make geth 
Copy the code

Alternatively, build a complete suite of utilities

make all
Copy the code

Environment configuration

Vim /etc/profile Adds the configuration

export GOROOT=/usr/local/go
export ETH_HOME=/root/go/src/go-ethereum/build
export PATH=$PATH:$GOROOT/bin:$ETH_HOME/bin
Copy the code

Source /etc/profile and verify: geth version

Initialize creation block

To initialize the Genesis block, create a genesis. Json file with chainId: < any positive integer >.

{
  "config": {
    "chainId": 66,
    "homesteadBlock": 0."eip150Block": 0."eip155Block": 0."eip158Block": 0."byzantiumBlock": 0."constantinopleBlock": 0."petersburgBlock": 0}."alloc": {},
  "coinbase": "0x0000000000000000000000000000000000000000"."difficulty": "0x20000"."extraData": ""."gasLimit": "0x2fefd8"."nonce": "0x0000000000000042"."mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000"."parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"."timestamp": "0x00"
}
Copy the code

Then use the geth command to initialize:

# geth init ./genesis.json --datadir "./chain"
Copy the code

bootnode --genkey=boot.key
bootnode --nodekey=boot.key
Copy the code

TODO notes here, to be improved to see the English document see readme.md

Github reference: github.com/ethereum/go…