![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
区块链
水木渔樵
一个努力学习的小白
展开
-
私有链搭建之多节点连接
1、创建三个节点节点1// 初始化创世区块geth init genesis.json --datadir malakhChainA// 启动节点geth --networkid 123 --datadir malakhChainA --rpc --rpcaddr 192.168.72.130 --rpcport 7001 --port 2001节点2// 初始化创世区块geth init genesis.json --datadir malakhChainB// 启动节点ge原创 2020-06-02 17:42:33 · 1288 阅读 · 1 评论 -
ubuntu下区块链相关软件安装
一、安装gitsudo apt-get install git查看版本: git --version二、安装 gosudo apt-get install golang-go查看版本:go version三、安装gethsudo add-apt-repository -y ppa:ethereum/ethereumsudo apt-get updatesudo apt-get install ethereum查看版本: geth version四、安装 solc 0.4.2原创 2020-06-02 16:58:17 · 343 阅读 · 0 评论 -
Java连接区块链与调用智能合约
一、 编写智能合约test.solpragma solidity ^0.4.4;contract test { function multiply(uint a) public pure returns(uint d){ return a*7; } function sayHello() public pure returns(string){ return "hello"; }}二、 编译合约<1&原创 2020-06-02 16:49:30 · 3773 阅读 · 0 评论