hyperledger

composer network start: No valid responses from any peers. Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT

佐手、 提交于 2019-12-20 05:53:55
问题 I'm trying to deploy a multiple organisations to Hyperledger fabric by following this tutorial -> https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org Everything works as expected until I try to start the network: composer network start -l "DEBUG" -c PeerAdmin@byfn-network-org1 -n block-aviation-network -V 0.0.1 -o endorsementPolicyFile=./tmp/composer/endorsement-policy.json -A SimonOrg1 -C SimonOrg1/admin-pub.pem -A SimonOrg2 -C SimonOrg2/admin-pub.pem -A

How should composer setup to be done for hyperledger fabric network deployment for multiple orgs on multiple physical machine

馋奶兔 提交于 2019-12-20 05:43:05
问题 for deploying hyperledger fabric network using composer do i need to deploy composer per orgs (here in this case i'm using 2 orgs on 2 physical machine) or i setup of composer for all orgs is required? anyone have idea on this? 回答1: Hyperledger Composer can be used against any hyperledger fabric network topology you have defined, you just need to configure connection profiles and build business network cards with these profiles for the actions you want to perform. The best place to understand

Using two business cards in the same composer rest server configuration

穿精又带淫゛_ 提交于 2019-12-20 04:24:52
问题 I did the tutorial to deploy to a multi org fabric network and it worked successfully . Now i have two admin cards - alice@trade-network , bob@trade-network and two identities/cards issued by them - jdoe@trade-network , dlowe@trade-network Now i have given access control rules stating that jdoe (trader1-org1) and dlowe(trader2-org2) can only view their own records Thus when i connect to their respective business cards i am able to view only their records . Now i can start two rest servers

Use REST API support in local development environment for Hyperledger Fabric V1.0

只谈情不闲聊 提交于 2019-12-19 11:28:12
问题 I have setup a HyperLedger Fabric V1.0 network with 4 organisations each having 1 peer by following the steps Building Your First Network. Now I have org1.example.com - with peer : peer0.org1.example.com and msp : Org1MSP org2.example.com - with peer : peer0.org2.example.com and msp : Org2MSP org3.example.com - with peer : peer0.org3.example.com and msp : Org3MSP org4.example.com - with peer : peer0.org4.example.com and msp : Org4MSP And now I can install the chaincode to peers and

How is running the asset_management.go different from running a simple chaincode like chaincode_example02.go

梦想的初衷 提交于 2019-12-19 10:48:29
问题 The simple workflow for deploying/invoking a chaincode (to my knowledge) is : Deploy a chaincode(smart contract) on the blockchain This brings up a docker container on all peers that has the chaincode running in it Invoke some function This type of function changes the values of variables in chaincode state For asset_management.go, the chaincode can be tested by running go test in the asset_management chaincode directory . But this does not really bring up a docker container(or does it ?)

Hyperledger Explorer is empty with Query - Error: No identity has been assigned to this client

谁说我不能喝 提交于 2019-12-19 04:55:22
问题 I recently installed Hyperledger Explorer. When running Explorer, it returns nothing to the browser and gives the error: postgres://hppoc:password@127.0.0.1:5432/fabricexplorer Please open web browser to access :http://localhost:8080/ [2018-04-16 08:15:18.542] [ERROR] Query - Error: No identity has been assigned to this client at Client._getSigningIdentity (/home/ubuntu/blockchain-explorer/node_modules/fabric-client/lib/Client.js:1206:11) at Channel.queryInfo (/home/ubuntu/blockchain-explorer

Building a real time application USing composer

断了今生、忘了曾经 提交于 2019-12-19 04:46:20
问题 Consider a scenario: I am building the Enterprise Web application, in which some part of the data resides in Blockchain and in the normal database. It is the authorized application. .bna has two types of participant admin and normal user Use case 1) Customer registers as "admin" on the application form. During the process, Username and password are saved in the normal database. Now the same user needs to be created in the Blockchain as Participant "admin" in parallel using the API's.What is

Handshake failed with fatal error SSL_ERROR_SSL

老子叫甜甜 提交于 2019-12-18 18:07:38
问题 I'm following this tutorial https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org to deploy a composer blockchain business network to Hyperledger Fabric (multiple organizations) I'm getting the following error however when trying to install the business network though: Installing business network. This may take a minute...E0424 16:44:04.865686000 140735870391104 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL

Add Org or peer in Org dynamically in Hyperledger fabric

空扰寡人 提交于 2019-12-18 10:36:32
问题 I am using http://hyperledger-fabric-doc.readthedocs.io/en/latest/getting_started.html for Hyperledger Fabric setup in Ubuntu VM. As per tutorial (fabric-samples/first-network) which have two organizations with two peers have been created. I wanted to add new organization or new peer in already existing Organization dynamically. Kindly help me know the steps to add dynamically. 回答1: It isn't to the point of being "dynamic" just yet. However, the reconfiguration is done using the configtxlator

How to upgrade a chaincode after modification?

落爺英雄遲暮 提交于 2019-12-18 07:19:58
问题 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: