hyperledger / hyperledger/fabric-admin-sdk
New QueryAllApproved chaincode capability in Fabric v3
- Dominant language
- Go
- Stars
- 36
- Forks
- 28
- Avg merge
- 26m
- Merged PRs (30d)
- 2
Description
**As a** blockchain administrator
**I want** to query all approved chaincode when using Fabric v3
**So that** I can query all chaincode approvals for a channel instead of query each explicitly by name
Fabric v3 allows the QueryApprovedChaincodeDefinition lifecycle transaction function to:
1. Omit a sequence ID to query the latest sequence number of a given chaincode definition.
2. Specify only the channel name to query all approved chaincode definitions on the channel.
These capabilities should be tested in the end-to-end tests when using Fabric v3. If they add value, additional unit tests should be added for these scenarios. This behaviour should be documented in the Godoc for the chaincode.Gateway.QueryApproved function.
See the [Fabric CLI examples](https://hyperledger-fabric.readthedocs.io/en/latest/commands/peerlifecycle.html#peer-lifecycle-chaincode-queryapproved-example) for further information.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.