hyperledger-fabric

Channel creation fails in Hyperledger v1.2

倾然丶 夕夏残阳落幕 提交于 2019-12-24 04:41:15
问题 I am trying to start a network. The network starts correctly, but channel creation fails. peer channel create -o orderer-dpm:7050 -f /etc/hyperledger/config/userchannel.pb -c userchannel Hyperledger - attempt to set key [Policy] /Channel/Application/Writers to version 0, but key is at version 0 The output from docker logs command is , 2018-08-31 03:20:54.933 UTC [cauthdsl] func2 -> DEBU 0ee 0xc4200b20b8 principal evaluation succeeds for identity 0 2018-08-31 03:20:54.933 UTC [cauthdsl] func2

Difference between Endorsing Peer and Committing peer in Hyperledger Fabric?

杀马特。学长 韩版系。学妹 提交于 2019-12-24 03:41:32
问题 I am quit confused with these two peers since I am new to Fabric. If any body help me with this. 回答1: Endorsing peers are basically approvers. 回答2: A transaction has to be proposed and then endorsed before it can be submitted successfully to the blockchain. Endorsing peer is the peer that will "endorse"/provide the seal of approval to a transaction when it is proposed. After the transaction is endorsed, the transaction(plus the endorsement) will be submitted to blockchain. Once the

Difference between Endorsing Peer and Committing peer in Hyperledger Fabric?

别来无恙 提交于 2019-12-24 03:41:12
问题 I am quit confused with these two peers since I am new to Fabric. If any body help me with this. 回答1: Endorsing peers are basically approvers. 回答2: A transaction has to be proposed and then endorsed before it can be submitted successfully to the blockchain. Endorsing peer is the peer that will "endorse"/provide the seal of approval to a transaction when it is proposed. After the transaction is endorsed, the transaction(plus the endorsement) will be submitted to blockchain. Once the

Subsequent transactions do not update the ledger in Hyperledger Fabric, yield iconsistent state

ⅰ亾dé卋堺 提交于 2019-12-24 02:21:50
问题 I am working on a small project to get myself familiar with the Hyperledger Fabric. Currently, I have a small network, consisting of single peer, orderer and ca nodes (plus cli, chaincode and explorer), defined in docker-compose.yml I have installed sample chaincode, chaincode_example02 to be more specific The initial state of a ledger is A:100, B:200, defined by peer chaincode instantiate -n mycc -v 0 -c '{"Args":["init","a","100","b","200"]}' -C myc When I execute the transfer everything

How to dynamically add and scale with Private Data Collections?

半城伤御伤魂 提交于 2019-12-24 01:39:21
问题 Scenario: I have 3 organizations (O1-O3) . O1 is an org of an applicant and O2/O3 administrate his public and private data shared with them. O1-O3 have private data shared with each other and O1-O2 have private data shared . The network is running, collections are already distributed and everything works fine. When i now want to add more organizations (in terms of thousands, O4-O1000) of type applicant (O1) and each of them should have shared private data with Organization 2 (O2) and

Authorization failure while issuing identity hyperledger composer

不问归期 提交于 2019-12-24 00:43:20
问题 I read the answer suggesting to check the docker.yaml for ca. The file path is below where I confirm that the username is admin and password is adminpw. Unfortunately I still get authorizatin failure error. command I use to issue identity composer identity issue -n 'trade-network' -p hlfv1 -i admin -s adminpw -u trader1 -a "org.acme.trading.Trader#TRADER1" Error: fabric-ca request register failed with errors [[{"code":400,"message":"Authorization failure"}]] Command failed. /home/composer

hyperledger-fabric “Writing your first Application” query.js step fails

人盡茶涼 提交于 2019-12-24 00:05:29
问题 Steps "git clone...", "startFabric.sh" and "npm.install" complete with no errors. "node query.js" results in: Set wallet path, and associate user PeerAdmin with application error: [Client.js]: Failed to load user "PeerAdmin" from local key value store. Error: TypeError: this is not a typed array. at Function.from (native) at importKey (/home/peter/fabric-samples/fabcar/node_modules/fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js:180:26) at fromString (/home/peter/fabric-samples/fabcar/node

Hyperledger Fabric peer container cannot communicate with couchdb container

假如想象 提交于 2019-12-24 00:04:31
问题 I am trying to configure hyperledger fabric network. I run three zookeepers, three kafkas, three orderers and a couchdb. They are docker containers and work well. All containers are in the same docker network called ibknet. After that, I run peer container but it has a problem to detect couchdb container while its starting. Here is my command to run peer container. docker run -d --name main.stock.ibk.com --hostname main.stock.ibk.com \ -p 7051:7051 \ -p 7053:7053 \ -e CORE_LEDGER_STATE

hyperledger fabric fabcar error

∥☆過路亽.° 提交于 2019-12-23 20:42:58
问题 I tried to run fabcar example from hyperledger-fabric tutorial https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html. when I run ./startFabric.sh I got the error : //Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block 2017-08-06 08:05:59.338 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing

Fabric Network - what happens when a downed peer connects back to the network?

自闭症网瘾萝莉.ら 提交于 2019-12-23 19:16:09
问题 I recently deployed the fabric network using Docker-compose, I was trying to simulate a downed peer. Essentially this is what happens: 4 peers are brought online using docker-compose running a fabric network 1 peer i.e the 4th peer goes down (done via docker stop command) Invoke transactions are sent to the root peer which is verified by querying the peers after sometime (excluding the downed peer). The downed peer is brought back up with docker start. Query transaction run fine on the always