Skip to content

Allow successful queries if one of the configured peers is down #474

Open
@arner

Description

@arner

When doing a fabric.ChaincodeQuery with WithEndorsersFromMyOrg, the FSC queries all configured peers of the own organization. On any query, it validates if all responses match:

func (i *Invoke) query() ([]byte, error) {

In some situations this may be important (i.e. querying other orgs, not trusting all own peers). But sometimes availibility should be considered more important than the integrity. For example: I have three peers in my organization and I want to update one. The client should still be able to query (and invoke).

Perhaps it would be worthwhile to have a flag to 'trust any response' and it would just take the first of all the responses that has a valid payload?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions