-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
pkg: coreCore packageCore package
Description
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
Labels
pkg: coreCore packageCore package