hyperledger / hyperledger/fabric

checkcommitreadiness return always false for approvals

Open
#3,330 16 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
16.7k
Forks
9.1k
Avg merge
5h 38m
Merged PRs (30d)
26

Description

Hi there,
I'm trying to setup chaincode on fabric 2.2, but, I dont'know why, approvals are always setted to false when I run `peer lifecycle chaincode checkcommitreadiness`:

this is my approveformyorg:
```
peer lifecycle chaincode approveformyorg -o orderer.example.com:7050 --cafile $ORDERER_CA --channelID mychannel --name newc --version 1.0 --init-required --package-id $CONTRACTS_PACKAGE_ID --sequence 1 --signature-policy 'OR("Org1MSP.peer", "Org2MSP.peer")' --collections-config /opt/gopath/src/github.com/chaincode/collections/collections_config.json
```

and its output:
```
txid [376e4c1d55d4cffa08e4d6f3f9032ae21f54e6fd78f8ac1e406037988143b4a9] committed with status (VALID) at peer0.contracts.example.com:7051
```

this is my checkcommitreadiness:
```
peer lifecycle chaincode checkcommitreadiness -o orderer.example.com:7050 --cafile $ORDERER_CA --channelID mychannel --name newc --version 1.0 --init-required --sequence 1 --output json --signature-policy 'OR("Org1MSP.peer", "Org2MSP.peer")' --collections-config /opt/gopath/src/github.com/chaincode/collections/collections_config.json
```

when I run the above command the output is always:
```
{
"approvals": {
"Org2MSP": false,
"Customer": false,
"Org1MSP": false
}
}
```

why?

Any suggestion is welcome. Thanks in advance

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.