Skip to content

New QueryAllApproved chaincode capability in Fabric v3 #208

@bestbeforetoday

Description

@bestbeforetoday

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 for further information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions