实验机器
Ubuntu 16.04.3 LTS
1G内存
虚拟机环境
搭建环境
安装Geth
https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-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
初始化创世区块
https://github.com/ethereum/go-ethereum
chainId不能为0,否则交易会报错: insufficient funds for gas*price+value
cd home
mkdir blockChain&& cd blockChain
vim genesis.json
//摘自官网
{
"config": {
"chainId": 14,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block":