hyperledger-fabric

Querying chaincode is only successful in ~3/5 cases with nodejs

情到浓时终转凉″ 提交于 2020-03-04 03:15:39
问题 I successfully installed and instantiated chaincode on my chain. I'm able to enroll the admin and register a user trough nodejs. If I query the chaincode it only returns a correct response around 3 out of 5 times. The rest throws errors that the chaincode can't be found. The chaincode installed is the basic example from the fabric samples. My js file to query the chaincode (based on the fabcar example): /* * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; const { FileSystemWallet,

peers not joining channel and error with TLS connection (IP SANs error)

ぐ巨炮叔叔 提交于 2020-02-24 12:16:59
问题 I was trying below architecture in fabric where one peer is on another machine rest of the network set up in first machine(server/system), after creating channel while adding each peer to the channel shows a log as below which was not the case when i tried sample network, the log used to say peer joined to channel, also when i check the logs of peer it says : 2018-02-28 06:51:23.916 UTC [ConnProducer] NewConnection -> ERRO 36b Failed connecting to 138.68.138.161:7050 , error: x509: cannot

Hyperledger Fabric cryptographic material confusion

旧时模样 提交于 2020-02-22 06:23:05
问题 Background I have some difficulties in understanding the generation of cryptographic materials in Hyperledger Fabric. I noticed there is a similar question, Hyperledger fabric Crypto materials, and I have asked this question Questions on hyperledger fabric MSP setting before. but I still have lots of confusion. I followed the example, Building Your First Network, I noticed that using cryptogen tool and consume that crypto-config.yaml . It generates the keys and certs for the orderers and

Cryptographic material inside crypto-config folder

浪子不回头ぞ 提交于 2020-02-16 06:51:52
问题 I found similar questions here : Hyperledger fabric Crypto materials Hyperledger Fabric cryptographic material confusion I was not able to find a clear defination for all the material? and when is the material used - as in for what operations are a particular material used ? It would be great if someone could explain the entire folder tree 回答1: Here is the link to my naive approach of building a tree for the sole purpose of an explanation of the MSP structure. Certificates with the same

Hyperledger fabric:transport: authentication handshake failed: x509: certificate on channel create

混江龙づ霸主 提交于 2020-02-06 07:56:49
问题 I am trying to create a channel in HLF using the following command peer channel create -o orderer1.base:7050 -c basechannel -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/tlsca/tlsca.base.order-cert.pem But it's failing due to this error Failed to send StepRequest to 2, because: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc =

Hyperledger fabric:transport: authentication handshake failed: x509: certificate on channel create

故事扮演 提交于 2020-02-06 07:55:07
问题 I am trying to create a channel in HLF using the following command peer channel create -o orderer1.base:7050 -c basechannel -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/tlsca/tlsca.base.order-cert.pem But it's failing due to this error Failed to send StepRequest to 2, because: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc =

Multiple Smart Contracts in Hyperledger Fabric

蓝咒 提交于 2020-02-01 08:53:19
问题 How can I implement more than one smart contract in the same application of Hyperledger fabric ? Which configuration file contains the settings to achieve this ? 回答1: I will answer your question using the Fabcar example from the Hyperledger Fabric version 1.4. And my answer is based on Javascript Implementation. If you see the folder structure you would see that there is a Chaincode folder which contains the fabcar.js(chaincode/fabcar/javascript/lib/fabcar.js) chaincode. A smart contract is

“Error: no suitable peers available to initiize from” when querying the blockchain

元气小坏坏 提交于 2020-01-31 18:31:48
问题 I've been working with the IBM Blockchain v2 beta for the past few months. About 2 weeks ago (with the platform's update to 1.4.1), I've been getting this error: "Error processing transaction. Error: no suitable peers available to initialize from" I have attempted to clear and start a new network, using the same configuration as before. But I am still getting this error. Connection profile: { "name": "mychannel", "description": "Network on IBP v2", "version": "1.0.0", "client": {

“Error: no suitable peers available to initiize from” when querying the blockchain

别来无恙 提交于 2020-01-31 18:30:20
问题 I've been working with the IBM Blockchain v2 beta for the past few months. About 2 weeks ago (with the platform's update to 1.4.1), I've been getting this error: "Error processing transaction. Error: no suitable peers available to initialize from" I have attempted to clear and start a new network, using the same configuration as before. But I am still getting this error. Connection profile: { "name": "mychannel", "description": "Network on IBP v2", "version": "1.0.0", "client": {

could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1

☆樱花仙子☆ 提交于 2020-01-26 04:37:13
问题 I have created chain code package Then I have installed ccpack.out peer chaincode install ccpack.out when I instantiate that time I got Error:could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1 CLI query: peer chaincode instantiate -o orderer.example.com:7050 -C logistic -n tradecc -l node -v 0 -c '{"Args":[]}' -P 'AND('Org1MSP.member','Org2MSP.member')' can any one please tell me packaged