geth搭建私有链节点,并开始挖矿
作者:互联网
1. 安装 geth:
安装地址:https://geth.ethereum.org/downloads/
找到对应的操作系统安装最新的版本就好
2.创建私链
(1).创建一个文件夹btc,用以存放以太坊私链数据:
(2).创建json文件genesis.json,将文件内容改为下面所示并保存
{
"config":{
"chainId":9,
"homesteadBlock":0,
"eip155Block":0,
"eip158Block":0
},
"nonce":"0x0000000000000042",
"timestamp":"0x0",
"parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData":"0x00000000",
"gasLimit":"0x80000000",
"difficulty":"0x1",
"mixhash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase":"0x3333333333333333333333333333333333333333",
"alloc": {}
}
标签:geth,创建,0x0000000000000000000000000000000000000000000000000000000000000000,json, 来源: https://blog.csdn.net/Q1368089323/article/details/115255032