运行fabric 应用程序

     基于 fabric 2.4.8  Ubuntu22.04 

     调用 go Applicaton调用合约

A.打开测试网络,创建通道

lucky@BCS:~/go/src/github.com/hyperledger/fabric-samples/test-network$ ./network.sh up createChannel -c mychannel -ca
Using docker and docker-compose
Creating channel 'mychannel'.
If network is not up, starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb with crypto from 'Certificate Authorities'
Bringing up network
LOCAL_VERSION=2.4.8
DOCKER_IMAGE_VERSION=2.4.8
CA_LOCAL_VERSION=1.5.5
CA_DOCKER_IMAGE_VERSION=1.5.5
Generating certificates using Fabric CA
Creating network "fabric_test" with the default driver
Creating ca_orderer ... done
Creating ca_org2    ... done
Creating ca_org1    ... done
Creating Org1 Identities
Enrolling the CA admin
+ fabric-ca-client enroll -u https://admin:adminpw@localhost:7054 --caname ca-org1 --t

猜你喜欢

转载自blog.csdn.net/lws24919/article/details/128834140
今日推荐