
hyperledger fabric 2.2.1
永慕无一
这个作者很懒,什么都没留下…
展开
-
报错:Failed validating bootstrap block: initializing channelconfig failed: could not create channel Or
把crypto-config文件夹下的东西删掉原创 2020-10-22 15:50:36 · 1174 阅读 · 1 评论 -
2.0.0搭建自己的fabric网络
前提是byfn可以运行之前配置了好多次了,这次记录一下1.第一步 使用cryptogen为fabric网络产生组织结构和证书相关的文件是crypt-config.yaml../bin/cryptogen generate --config=./crypto-config.yaml终端显示org1.example.comorg2.example.com2.我们接下来要告诉configtxgen工具去找这个configtx.yaml文件,让他在当前的工作目录寻找:export FABRIC原创 2020-10-22 15:33:50 · 1163 阅读 · 3 评论 -
解决git clone https://github.com/hyperledger/fabric.git下载网速太慢问题
git clone https://gitee.com/hyperledger/fabric.git转载原创 2020-10-21 22:59:39 · 2242 阅读 · 2 评论 -
配置2.0.0
sudo apt updatesudo apt install gitsudo apt install curlsudo apt install docker.iosudo groupadd docker# step 2:将当前用户添加到docker用户组sudo usermod -aG docker $USERsudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compo原创 2020-10-21 22:16:02 · 159 阅读 · 0 评论 -
2020-10-20
想了想 毕竟2.0.0是2x第一个版本,各方面都比较完善,还是用这个版本好了(绝对不是我误删了2.2的镜像)curl -sSL https://bit.ly/2ysbOFE | bash -s -b -- 2.0.0 1.4.4 0.4.18原创 2020-10-20 10:53:14 · 79 阅读 · 0 评论 -
两种下载镜像和二进制方法
git clone https://github.com/hyperledger/fabric-samples.gitcd fabric-samplesgit checkout 22393b629bcac7f7807cc6998aa44e06ecc77426下载Hyperdger Fabric 2.2.0的二进制文件与docker镜像curl -sSL https://bit.ly/2ysbOFE | bash -s – 2.2.0 1.4.8 -s还有一种 ./bootstrap.sh up原创 2020-10-19 16:36:18 · 509 阅读 · 2 评论 -
caliper测试性能(小例子)
这个是我之前一周做的一个实验,多谢余府同学的大力帮助~我们接下来要在一个存在的区块链网络建立并且运行性能测试概况用caliper测试,要安装nodejs。本文先用官方文档里面的。这个网络包含两个组织一个soloorderer,运用了js的asset-transfer-basic智能合约。下载镜像二进制我默认已经下载了包括配置环境变量cd go/src/github.com/hyperledger/fabric/scripts/fabric-samples/test-network//以默认方式建原创 2020-10-16 20:16:02 · 7565 阅读 · 5 评论 -
编写你的第一个链码
前面废话不多说了,链码是什么懂的都懂资产转移链码这个应用是一个基础的样例链码,这个链码可以产生一个账本(这个账本能创建资产,读,更新,删除资产,检查是否一个资产存在,转移资产)为你的代码选个位置就在home目录下面创建即可,并建立链码go文件(到时候把代码放进去)// atcc is shorthand for asset transfer chaincode mkdir atcc && cd atcc go mod init atcc touch atcc.go原创 2020-10-16 13:29:57 · 834 阅读 · 1 评论 -
在fabric2.2.1环境下部署智能合约
1.开启网络没啥好说的,之前要下samples,二进制和镜像cd fabric-samples/test-network把之前网络关闭了./network.sh down用下面的指令开启测试网络:./network.sh up createChannelcreatechannel指令创造了一个叫mychannel的channel(两个组织org1和2)。成功的画面8说了,就是channel successfully joined。这会可以用peer cli来部署asset-trans原创 2020-10-14 21:01:28 · 2470 阅读 · 4 评论