首先从安装GO语言开始:
在windows下的GO安装与测试在这里:摸我
其他的两个软件直接去官网找就完事,最好找.msi 或者 .exe的。
安装了go,geth 之后,搭建私链需要从创世区块开始 ,创世区块的内容按这个保存在geth目录下
{ "alloc": {}, "config": { "chainID": 72, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, "nonce": "0x0000000000000000", "difficulty": "0x4000", "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000", "timestamp": "0x00", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "extraData": "0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa", "gasLimit": "0xffffffff" }
内容的解析在这里:戳我(第五节)
创建之后,设置创世区块,然后开始进行挖矿