Introduce a new parameter in RpcConfig to let the caller choose between different consensus strategies to aggregate answers from multiple providers. Two strategies are defined, with the possibility of adding more in the future:
Equality: this is the default and matches the current behaviour, where all responses are expected to be non-error cases and all responses are expected to be equal.
Threshold: new strategy introduced by this PR, allowing to relax the aforementioned equality strategy to only a subset of the responses. Choosing this strategy may influence the chosen providers to match the specified threshold parameters. The implementation of responses aggregation in this case is done in a separate PR (#287).
Introduce a new parameter in
RpcConfig
to let the caller choose between different consensus strategies to aggregate answers from multiple providers. Two strategies are defined, with the possibility of adding more in the future:Equality
: this is the default and matches the current behaviour, where all responses are expected to be non-error cases and all responses are expected to be equal.Threshold
: new strategy introduced by this PR, allowing to relax the aforementioned equality strategy to only a subset of the responses. Choosing this strategy may influence the chosen providers to match the specified threshold parameters. The implementation of responses aggregation in this case is done in a separate PR (#287).