Skip to content

send best message #11

@mrednic-1A

Description

@mrednic-1A

Context
When being in a network of peers, we can have peers which are able to handle different versions of the same message type. One peer could handle v1.0, another one could handle v2.0. We could have peers handling both.

Proposal
Implement a sendBest method which will receive as input a list of messages of the same type but different versions and it will send to each peer the most recent accepted version by the peer itself.

Example:
messages = v1.0, v2.0
peer1 accepts v1.0
peer2 accepts v2.0
peer3 accepts v1.0 and v2.0

sendBest will receive messages as input and it will:
in case of peer1 - send v1.0
in case of peer2 -send v2.0
in case of peer3 - send v2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions