您的位置:首页 > 其它

搭建基于以太坊的私有链环境

2017-09-01 16:05 267 查看
先学习下面简单的命令行的操作:


Geth搭建私有链:http://m.blog.csdn.net/vinsuan1993/article/details/75208203

学习后,会了解些geth开发者模式下测试挖矿、转账、智能合约的概念,接着做下面博客搭建私有链:

博客地址:http://blog.csdn.net/sportshark/article/details/51855007

原文参考文章:

1. http://tech.lab.carl.pro/kb/ethereum/testnet_setup

2. http://www.ethdocs.org/en/latest/network/test-networks.html#setting-up-a-local-private-testnet

3. https://github.com/ethereum/go-ethereum/wiki/Connecting-to-the-network

4. https://github.com/ethereum/go-ethereum/wiki/JavaScript-Console

5. https://github.com/ethereum/go-ethereum/wiki/Mining

6. https://github.com/ethereum/go-ethereum/wiki/Managing-your-accounts
7. https://github.com/janx/ethereum-bootstrap

其他参考地址:
基于以太坊开发常见问题http://blog.csdn.net/xiabing082/article/details/77368385
geth的使用入门http://blog.csdn.net/chenyufeng1991/article/details/53458175
使用geth搭建私有链http://blog.csdn.net/chenyufeng1991/article/details/53471576

最终的结果,我这里建了三个帐号,可以在个帐号之间转账

注意点:
1.因为博文的geth相对最新的来说比较旧,创世块文件要添加config配置,并且里面json的内容要用十六进制的值
2.geth运行起来了后要先创建帐号,不创建帐号会提示错误
3.用mist钱包和Ethereum-Wallet.exe都可以看到私有链
4.挖矿的时候,如果不想停止,但想执行一下命令,可以另外开一个终端,然后输入geth attach,会连接到正在挖矿的终端,输入miner.stop()同样可以停止挖矿。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  区块链 私有链