Interface IDeltaElector
Inherited Members
System.IObserver<Catalyst.Protocol.Wire.FavouriteDeltaBroadcast>.OnCompleted()
System.IObserver<Catalyst.Protocol.Wire.FavouriteDeltaBroadcast>.OnError(System.Exception)
System.IObserver<Catalyst.Protocol.Wire.FavouriteDeltaBroadcast>.OnNext(Catalyst.Protocol.Wire.FavouriteDeltaBroadcast)
Namespace: Catalyst.Abstractions.Consensus.Deltas
Assembly: Catalyst.Abstractions.dll
Syntax
public interface IDeltaElector : IObserver<FavouriteDeltaBroadcast>
Methods
| Improve this Doc View SourceGetMostPopularCandidateDelta(MultiHash)
When the election phase is over, this method can be called to retrieve which candidate has been the most popular for a given cycle. If the candidate is popular enough, it will then be appointed as the next official delta.
Declaration
CandidateDeltaBroadcast GetMostPopularCandidateDelta(MultiHash previousDeltaDfsHash)
Parameters
Type | Name | Description |
---|---|---|
MultiHash | previousDeltaDfsHash | The DFS hash of the delta for which we are trying to produce a successor. |
Returns
Type | Description |
---|---|
CandidateDeltaBroadcast | The most popular candidate for a given cycle. |
Remarks
This function will be called at the beginning of a Voting cycle.