GossipValue

@Serializable
data class GossipValue<ID : Comparable<ID>, Value>(val best: Value, val local: Value, val path: List<ID> = emptyList())

The best value exchanged in the gossip algorithm. It contains the best value evaluated yet, the local value of the node, and the path of nodes through which it has passed.

Constructors

Link copied to clipboard
constructor(best: Value, local: Value, path: List<ID> = emptyList())

Properties

Link copied to clipboard
val best: Value
Link copied to clipboard
Link copied to clipboard
val path: List<ID>

Functions

Link copied to clipboard
fun addHop(local: Value, id: ID): GossipValue<ID, Value>

TODO.

Link copied to clipboard
fun base(id: ID): GossipValue<ID, Value>

TODO.