Skip to content

More mostCommonReply misbehaviour #48

@synechist

Description

@synechist

Current behaviour

When "consensus" returns 1 divergent response and 3 majority responses, then go-xrouter outputs the following:

2021/10/06 09:40:30 {
        "Consensus": {
                "MajorityStrength": "0.00%",
                "MostCommonReplyCount": 0,
                "MostCommonReply": "",
                "DivergentReplyCount": 2,
                "DivergentReplies": [
                        {
                                "Count": 1,
                                "Reply": "2182759"
                        },
                        {
                                "Count": 3,
                                "Reply": "2182760"
                        }
                ]
        },
        "QueryCount": ""

Intended behaviour

go-xrouter should return the majority response as a mostCommonReply not as a divergentReply.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions