其他分享
首页 > 其他分享> > 以太坊搭建私链

以太坊搭建私链

作者:互联网

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"
}

标签:Geth,文件,以太,0x0000000000000000000000000000000000000000000000000000000000000000,ex
来源: https://blog.csdn.net/le_men/article/details/120942978