hyperledger

How to upgrade a chaincode after modification?

余生长醉 提交于 2019-12-18 07:19:30
问题 I am new to hyperledger and is going through the example here . I am tried to play around the chaincode but is now stuck at the part where I am suppose to upgrade the chaincode I have tried to execute the peer chaincode upgrade within the docker peer node: peer chaincode upgrade -n tuna-app -p github.com/tuna-app but end up with the error Error getting (testchainid) orderer endpoint: Error endorsing GetConfigBlock: rpc error: code = Unknown desc = chaincode error (status: 500, message:

Historian for a particular participant

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 05:26:27
问题 Is there any way in which I can get Historian for a particular participant in hyperledger-composer using node API? I am developing an application based on hyperledger-composer using Node APIs.I want to show the history of transaction of a particular participant in his/her profile. I have created the permission.acl for that and that is working fine in playground. But when i am accessing the historian from node API it is giving complete historian of the network. I don't know how to filter that

Unable to enroll user in new org added to balance transfer sample

删除回忆录丶 提交于 2019-12-18 02:58:31
问题 I am following Balance transfer from Hyperledger Fabric samples from this link. I have modified it a bit, now I have 3 Orgs with 1 Peer each. All goes fine till I enroll users to Org1 and Org2 but, when I try to enroll a user to my 3rd Org I get following error Failed to get registered user: xyz with error: Error: fabric-ca request register failed with errors [[{"code":63,"message":"Failed to get Affiliation: sql: no rows in result set"}]] My Binaries of Hyperledger Fabric are from version 1

Hyperledger Composer Web application user authentication

筅森魡賤 提交于 2019-12-17 09:17:11
问题 I already created a business network using hyperledger composer and I created a simple web app for adding participants and submitting transactions through web interface by using angular. Also, I have enabled authentication for the REST server using passport and I have used multiple user mode so I could export business network card to the rest api and change the default card and submit transaction via different users. Now I want to create the registration part of my web app, so my users could

Hyperledger Composer Web application user authentication

时光毁灭记忆、已成空白 提交于 2019-12-17 09:16:51
问题 I already created a business network using hyperledger composer and I created a simple web app for adding participants and submitting transactions through web interface by using angular. Also, I have enabled authentication for the REST server using passport and I have used multiple user mode so I could export business network card to the rest api and change the default card and submit transaction via different users. Now I want to create the registration part of my web app, so my users could

Hyperledger Fabric make: *** No rule to make target问题

寵の児 提交于 2019-12-17 04:27:56
Hyperledger Fabric make: *** No rule to make target问题 最近一段时间,改Fabric代码,发现没法编译了!make总是报找不到target! ➜ fabric git: ( master ) ✗ make configtxgen make: *** No rule to make target ` .build/bin/configtxgen', needed by ` configtxgen' . Stop. make 输出debug信息,没有error,只是告诉必须重新make ➜ fabric git: ( master ) ✗ make configtxgen -d .. . Must remake target ` .build/bin/configtxgen'. make: *** No rule to make target ` .build/bin/configtxgen ', needed by `configtxgen' . Stop. ➜ fabric git: ( master ) ✗ 后来,在其他机器上发现,存在.build文件的可以通过编译。 从对应版本的项目中复制fabric/.build过来,就可以编译了。 ➜ fabric git: ( master ) ✗ cp .. /fabric-dev/

Hyperledger Caliper tutorial for Composer network

半城伤御伤魂 提交于 2019-12-14 04:05:57
问题 I want to execute a performance evaluation test on a deployed Hyperledger Composer business network using Hyperledger Caliper. Into the official documentation there is a section for the Composer configuration but I think that it's not very user friendly for those approaching this framework for the first time and I cannot find a better basic step-by-step tutorial for configuring and running an evaluation test. 回答1: Check that all the prerequisites are installed: NodeJS 8 (LTS), 9, or 10 (LTS)

Hyperledger fabric 1.2 service discovery error

ぐ巨炮叔叔 提交于 2019-12-14 03:59:10
问题 I use Hyperledger Fabric 1.2 to build a blockchain cluster, which contains 3 peers and 3 orderers. I can successfully deploy and invoke the chaincode via both CLI and Java SDK. Everything works fine. However, when I notice the service discovery function and try to use it, I met two problems. First, after I build the discover tool and try to use it to get some discovered information, I can't access the peer and get the message as follow "failed connecting to discovery service: failed to create

Hyperledger-fabric blockchain Multi Host

倾然丶 夕夏残阳落幕 提交于 2019-12-14 03:32:38
问题 I am working on hyperledger fabric and I would like to have some guidance in using hyperledger fabric with multiple hosts. I have an orderer, a ca, two peers (Peer 0 and Peer 1) and two hosts (10.10.10.x and 10.10.11.x). I have the orderer, ca and Peer0 in host - 1 and Peer1 in a separate host (i.e) Peer 0 in host-1 and Peer 1 alone on host-2. I need to connect Peer1 in host 2 to Peer0 in host 1. I can achieve this scenario while having multiple hosts in the same network using docker swarm

peer node unable to create chaincode container - dial unix /host/var/run/docker.sock: connect: permission denied error

随声附和 提交于 2019-12-14 02:57:49
问题 I am trying to setup hyperledger network on centos Using 1.1.0 images from ibmblockchain docker hub. I am able to start up the network without any issues. that is 1 orderer, 3 kafkas, 3 zookeepers and 2 peers. But every time i try to instantiate chaincode, I see the below error in the peer docker containers. Can anyone help me with this issue. 2018-07-19 19:05:30.570 UTC [dockercontroller] Start -> ERRO 3ac start-could not recreate container , because of Post http://unix.sock/containers