Increment() public method

Increments the version for this 'Node'.
public Increment ( VectorClock node ) : Gossip
node VectorClock
return Gossip
Esempio n. 1
0
 public void UpdateLatestGossip(Gossip newGossip)
 {
     // Updating the vclock version for the changes
     var versionedGossip = newGossip.Increment(_vclockNode);
     // Nobody else have seen this gossip but us
     var seenVersionedGossip = versionedGossip.OnlySeen(SelfUniqueAddress);
     // Update the state with the new gossip
     _latestGossip = seenVersionedGossip;
 }