Questions tagged [hyperledger-fabric]

Hyperledger Fabric is an implementation of blockchain technology. Use this tag for questions about this project.

Use this tag for questions about this project.

Another good idea is to reach out to the community at

Documentation can be found at

Refer development lifecycle and officially provided resources at

6206 questions
5
votes
1 answer

Getting connection failed in Hyperledger Fabric sample

Hello i am new to Hyperledger Fabric. I have just started to work with it, i was doing the very first sample from http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html I followed prerequisite installation from…
Katiyman
  • 827
  • 2
  • 12
  • 32
5
votes
4 answers

How to avoid the Fabric CA beeing a single point of failure?

if I understood correctly, every peer in a fabric blockchain network (somehow interconnected through gossip) will only accept incoming connections from other peers if they use a HTTPS connection with a public key signed by the Fabric CA. Is that…
Romeo Kienzler
  • 3,373
  • 3
  • 36
  • 58
5
votes
1 answer

Can I use the public/private key generated by the MSP in Hyperledger Fabric v1.0 for encrypting/decrypting data?

In Hyperledger Fabric v1.0, a user can be registered and enrolled in the blockchain network through the MSP (member services provider). The user is given a public key (in the certificate) and a private key after registration and enrollment. The way…
A Pantola
  • 315
  • 2
  • 15
5
votes
4 answers

Hyperledger fabcar sample fabric showing connect failed ERROR

I am trying to install hyperledger and run chain code. I followed all the steps as directed here. But getting error error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Connect Failed while running the query.js. I have…
Subhankar
  • 692
  • 7
  • 25
5
votes
2 answers

Does Hyperledger-Fabric provide a way to find out who (msg.sender in Ethereum) called the chaincode?

In Hyperledger-Fabric how to get Ethereum like "msg.sender" in chaincode? (also when chaincode A calls chaincode B, will the "msg.sender" be script-address of A (like in Ethereum)?
5
votes
2 answers

retrieving hyperledger complete world state

Is there a chaincode shim function with which I can retrieve all the keys (maybe including values) of the world state in a Hyperledger Fabric chaincode?
Foo L
  • 10,977
  • 8
  • 40
  • 52
5
votes
1 answer

How to print and view logs from Hyperledger Fabric chaincode

I want to see logs while calling functions in my chaincode, for debugging purposes. I tried something like this: var logger = shim.NewLogger("chaincode_example02") logger.Info("get_caller_data called"); I've viewed logs of the peer running the…
Chaitanya Reddy
  • 193
  • 1
  • 7
5
votes
2 answers

Limit of number of nodes in Hyperledger

In Hyperledger-fabric blockchain, is there a limit to the number of nodes participating in a network? If yes, how many nodes can be in a network?
Gorrut
  • 268
  • 4
  • 10
5
votes
5 answers

Error building peer: "bzip2 data invalid" in goshim.tar.bz2

Some users experience a failure building the peer as follows: $ make peer Building docker ccenv-image docker build -t hyperledger/fabric-ccenv build/image/ccenv Sending build context to Docker daemon 20.19 MB Step 1 : FROM…
Gregory Haskins
  • 311
  • 2
  • 6
5
votes
2 answers

BigChainDB - What exactly is that?

I understand that the BigChainDB is a distributed DB at the basic level. It claims that is solves the problem of Scalability in the BlockChain world. What i don't understand is that how it fits into the overall block chain architecture. In the…
Manikandan Kannan
  • 8,684
  • 15
  • 44
  • 65
5
votes
4 answers

Cannot compile chaincode

I am trying to compile the chaincode_example02 followed by this guide with Option 2 (for Mac). All steps were passed except compiling the code. I have the following error: cd $GOPATH/src/github.com/chaincode_example02 go…
eugenn
  • 1,638
  • 6
  • 23
  • 38
4
votes
0 answers

Failed to get network: Failed to create new channel client: event service creation failed: could not get chConfig cache reference

Failed to get network: Failed to create new channel client: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: QueryBlockConfig failed: queryChaincode failed: Transaction processing for endorser…
4
votes
1 answer

Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: Protocol error

I try to connect from api user to my hyperledger fabric network via nginx server. I have next settings in my *.conf files: first file upstream rca-org1 { server XXXX:7054; } upstream couchdb { server XXXX:5984; } server { …
Ivan
  • 303
  • 3
  • 13
4
votes
1 answer

Unable to start Hyperledger Orderer - administrators must be declared when no admin ou classification is set

I'm trying to start my HLF network in K8s. When setting everything up on ordered startup I'm getting the following error: Main -> PANI 005 Failed validating bootstrap block: initializing channelconfig failed: could not create channel Consortiums…
Sniady
  • 1,633
  • 1
  • 12
  • 21
4
votes
3 answers

Hyperledger Fabric chaincode installation on peer0.org1 has failed

I'am trying to follow the tutorial Using the Fabric test network for the latest Version (v2.2.1) and everything works fine, up to the point where i try to intsall the chaincode with ./network.sh deployCC. I get the following output: deploying…
tbh428
  • 65
  • 1
  • 4