Questions tagged [hyperledger-chaincode]

448 questions
3
votes
1 answer

hyperleder fabric Enroll ID type error on peer?

Im trying to invoke a transaction on basic network The error that I get is: [discovery] chaincodeQuery -> ERRO 06c Failed constructing descriptor for chaincode chaincodes: ,: cannot satisfy any principal combination After a search I…
3
votes
3 answers

getStateByRange() returning empty iterator for in Hyperledger Fabric Java SDK

I am trying to get all entries in the ledger (Fabric 1.4.4, using Java Chaincode): QueryResultsIterator iterator = ctx.getStub().getStateByRange("",""); But I always get an empty iterator. Is this the correct way to get all entries? (At…
icordoba
  • 1,834
  • 2
  • 33
  • 60
3
votes
2 answers

Vendored Chaincode has false dependencies

I have chaincode with the following directory structure $GOPATH/myproject/chaincode/mycc/go ├── mycc.go ├── chaincode │   └── chaincode.go └── vendor ├── github.com ├── ... Because of my usage of hyperledgers cid package, I use vendoring…
Roper
  • 903
  • 1
  • 9
  • 17
3
votes
2 answers

Hyperledger Fabric: implementing chaincode level access control

I want to implement a chaincode level access control to some method. So, for example, I want that the chaincode method called can be executed only if the user that has performed the request has a certein identity that match a field of the asset…
2
votes
1 answer

Is it possible to use gRPC in hyperledger-chaincode and if so, how can I avoid errors during invocation on test-network?

I want to use gRPC in fabric chaincode to achieve cross-chain communcation instead of using fabric SDK. But when I invoke chaincode function on fabric-sample/test-network, it always occurs errors. Error: endorsement failure during invoke. response:…
2
votes
2 answers

hyperledger fabric - "go": executable file not found in $PATH

I 'm new to Hyperleger Fabric and trying to done examples from Using the Fabric test network documentation. I'm stuck on the phase of starting a chaincode on the channel. I am getting error located below even though I have adjusted paths properly. I…
2
votes
0 answers

can't instantiate chaincode write in golang 1.19 on fabric hyperledger 1.4

I write a chaincode in golang 1.19 and want to run on a fabric network, but when instantiate it error: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting…
npcxh
  • 19
  • 2
2
votes
1 answer

Using instances of generic types as return value type in a Hyperledger chain code written in GO

In my project, I am using a wrapper structure, that is defined similar to this: type Wrapper[T any] struct { Foo int Data T } Additionally, my chain code offers a method with the following signature func(contract *MyContract) DoSomething()…
Andreas
  • 31
  • 3
2
votes
2 answers

docker build is disabled error when installing my chaincode on hyperledger fabric

I am creating a hyperledger fabric network using the following hyperledger fabric operator for kubernetes https://github.com/hyperledger-labs/hlf-operator I have my cluster configured in aws eks and it is currently running 3 nodes. I am following…
2
votes
0 answers

Hyperledger Fabric Help? ERRO 001 Cannot run peer because error when setting up MSP

I'm having issue running a test channel setup for hyperledger fabric setup. I'm following the docz, but the setup isn't working: docker exec cli peer channel create -c mychannel \ > -f /opt/home/mychannel.pb -o $ORDERER \ > --cafile…
2
votes
1 answer

If the ledger of peer is tampered in hyperledger fabric network, how can be the previous state of ledger restored?

My hyperledger fabric network consists of 1 orderer, 1 organization and 3 peers. I tampered ledger of first peer and then tried to do another transaction on the same peer, then the following error was thrown: "Error: deliver completed with status…
2
votes
1 answer

Failed to install chaincode with status: 500

I am running hyperledger fabric 2.2.0 test-network.It was working fine for 2 3 days,but now when i am trying to install chaincode(any),getting failed after packaging.Below is the error i am getting- Error: chaincode install failed with status: 500 -…
2
votes
1 answer

Can't invoke the chaincode

I got problems during my invoke. 1.) I rund following command: peer lifecycle chaincode querycommitted \ --channelID mychannel \ --name basic \ --cafile…
2
votes
1 answer

Hyperledger Fabric: Endorsement policy two peers out of 3. Error

I am reaching out to you, because of an exception with hyperledger fabric endorsement policy belonging lifecycle. What I have done: Packaged, Installed, approved, and committed my chaincode on Three Peers out of 9, all in the same Organisational…
2
votes
1 answer

Hyperledger Fabic 2.2.0 Error handling success response. Value did not match schema

I am using Hyperledger Fabric 2.2.0 and fabric-network 2.1 (not that important). My chaincode is written in Go. So I have some structs which have ,omitempty in JSON tag. Here is my struct: type LeaseDetails struct { EndOfTerm string…
Lazar Lukic
  • 133
  • 1
  • 1
  • 9
1
2
3
29 30