天天看点

【以太坊】本地搭建Ethereum私有网络环境安装搭建私有网络启动节点创建账户参考资料

xiaoyu@xiaoyu-VirtualBox:~$ uname -a

Linux xiaoyu-VirtualBox 4.10.0-19-generic #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

找到Get our command line tools

创建一个文件夹,确定将eth的相关都放在这个文件夹内

创建文件<code>CustomGenesis.json</code>

根据文档给的例子发现报错,然后查看另一个出处的文档,给的例子如下所示

由于我们没有定义初始的账户,所以经过考虑,最终做了如下修改。

只是去掉了<code>extraData</code>的内容。

然后可以发现在当前目录生成了对应的文件夹

<a href="https://github.com/ethereum/go-ethereum/wiki/Private-network" target="_blank">https://github.com/ethereum/go-ethereum/wiki/Private-network</a>

<a href="http://www.ethdocs.org/en/latest/" target="_blank">http://www.ethdocs.org/en/latest/</a>