以太坊搭建私链

Windows系统---打开cmd命令行

1.初始化(首先有创世文件)

geth init "D:\Geth\1_test\genesis.json"

文件内容可自己创建(新建TXT--粘贴以下内容---后缀改为json即可)

{
  "config": {
        "chainId": 18,
        "homesteadBlock": 0,
        "eip150Block": 0,
        "eip155Block": 0,
        "eip158Block": 0
    },
  "alloc"      : {},
  "coinbase"   : "0x0000000000000000000000000000000000000000",
  "difficulty" : "0x2",
  "extraData"  : "",
  "gasLimit"   : "0xffffffff",
  "nonce"      : "0x0000000000000042",
  "mixhash"    : "0x0000000000000000000000000000000000000000000000000000000000000000",
  "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
  "timestamp"  : "0x00"
}

上一篇:SAP RETAIL 根据Allocation Rule去创建分配表


下一篇:在Centos 7下使用Geth搭建自己的以太坊私有链